Discussion Locked

Execute a string contains instn. in VB

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is it Possible to Execute a string Which contains the actual command in VB ?

For example

Dim ss as string
ss = " Msgbox 'Testing' "

How to invoke "ss" as Command ?
Where can I find help for this ?

In Foxpro , it can be acheived by using
& operator (Macro substitution)

6 replies

by glen_mcleod

The above answer is good, but here's some more info:

Set a reference to the MS Stript *Control*.
Use the "Eval()" function that is included in the Script Control's functionality.

Glen

This discussion is closed to new replies.