评估一个字符串 [英] evaluate a string

查看:105
本文介绍了评估一个字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在vb.net中评估此字符串


" Dim submenu0 As new skmMenu.MenuItem(''Home'','''')"


我试过用skmmenu作为编译命令的参考但是

程序集不会处理字符串,报告布尔错误。

http://odetocode.com/Code/80.aspx


也在这里查看,但无法下载以提供代码

http://www.codeproject.com/ dotnet / evaluator.asp

How can I evaluate this string in vb.net

" Dim submenu0 As New skmMenu.MenuItem(''Home'', '''') "

I have tried this with skmmenu as a reference in the compile command but
assembly will not process the string, reporting a boolean error.

http://odetocode.com/Code/80.aspx

also looked here, but can''t get the download to deliver the code

http://www.codeproject.com/dotnet/evaluator.asp

推荐答案

嗨TJS,


你的目标是什么?这个?
Hi TJS,

What is your goal by this?
如何在vb.net中评估此字符串

" Dim submenu0 As new skmMenu.MenuItem(''Home'','''')"
How can I evaluate this string in vb.net

" Dim submenu0 As New skmMenu.MenuItem(''Home'', '''') "



Cor


Cor


* " TJS" <无**** @ here.com> scripsit:
* "TJS" <no****@here.com> scripsit:
如何在vb.net中评估此字符串

" Dim submenu0 As new skmMenu.MenuItem(''Home'','''')"
How can I evaluate this string in vb.net

" Dim submenu0 As New skmMenu.MenuItem(''Home'', '''') "




这是无效的VB代码。 '''必须是"。


-

Herfried K. Wagner [MVP]

< URL: http://dotnet.mvps.org/>



That''s no valid VB code. The "''" must be """.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


字符串实际上是动态创建的,用来代替来自

另一个来源的值循环。

然后需要执行生成的字符串来创建对象。


" Cor Ligthert" <无********** @ planet.nl>在消息中写道

新闻:OC **************** @ TK2MSFTNGP11.phx.gbl ...
the string would actually be created dynamically , substituting values from
another source while in a loop.
The resulting string then needs to be executed to create the object.

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OC****************@TK2MSFTNGP11.phx.gbl...
嗨TJS,

你的目标是什么?
Hi TJS,

What is your goal by this?
如何在vb.net中评估此字符串

" Dim submenu0 As new skmMenu.MenuItem(''Home'','''')"
How can I evaluate this string in vb.net

" Dim submenu0 As New skmMenu.MenuItem(''Home'', '''') "


Cor


Cor



这篇关于评估一个字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆