473,320 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

execute string

TJS
in vbscript there was a command called "execute" which would process a
dynamic string
vb.net dropped that feature ...

does anybody have a solution for how to execute a string in vb.net through
perhaps an assembly or ???

--------example code-------------
for i = 0 to 2
dim vString as string = "Dim submenu" & Cstr(i) & " As New
skmMenu.MenuItem(" & tab.TabName & ", """")"
EXECUTE (vString)
next
Nov 20 '05 #1
1 1374
* "TJS" <no****@here.com> scripsit:
in vbscript there was a command called "execute" which would process a
dynamic string
vb.net dropped that feature ...

does anybody have a solution for how to execute a string in vb.net through
perhaps an assembly or ???


For example:

<http://www.codeproject.com/csharp/runtime_eval.asp>

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ChronoFish | last post by:
Hello, I would like to load a string with PHP code and execute it. Is there a command that will let me do that? Maybe something like php_exec(). I suppose I could always use some sort of...
2
by: Dune | last post by:
I'm trying to execute an aspx page by calling Server.Execute. The aspx page I'm trying to execute is in a different web app from the aspx page containing the Server.Execute statement. A slightly...
9
by: Joel Finkel | last post by:
Is there a way to execute a method if all we know is its name as a string? Let's say we have the following class. What is the code for the Execute method? I need a solution that works with the...
6
by: Sam | last post by:
My problem is that when I am trying to use Server.Execute("Somehandler.ashx") I am getting HttpException. System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer,...
1
by: Alan T | last post by:
I have a string in the format: Export.exe %1 %2 I will exexute this string by Process.Start(); However, before calling the Start I need to substitute the %1 and %2 with the source file name...
0
by: polygonVB | last post by:
Hi All, I'm trying ot make a error handler function. I want the error handler function to return a command: Resume Resume Next Exit Sub I know how to return it as a sting but I don't...
3
by: Jerzy Zielinski | last post by:
Hi all, I would like to execute/evaluate a string that contains a VB script, for example: Dim s as string = "Dim avar as integer = 1" ' Evaluate s... so s can be executed during runtime and...
5
by: Neil | last post by:
Hi, Long story short, we use "Server.Execute" to grab the output from an ASPX page ... Server.Execute("page.aspx", textWriter); We've noticed that intermittantly, we get a "Thread was being...
0
by: sama123 | last post by:
Is it possible to save execute stored proc command in a string variable and then execute string variable??? Does this logic fits into LINQ2SQL? Why I want to do this - INstead of passing user...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.