Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution in VB
Message
From
26/04/2002 11:25:39
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00647981
Message ID:
00649631
Views:
9
>what is the command for macro substitution in vb

Depending on what you are trying to do, you might be able to use the script control like so:
Private Sub Command1_Click()

   
   Dim oSC As ScriptControl
   Dim iVal As Integer
   Set oSC = New ScriptControl
   oSC.Language = "VBScript"

   Dim toexe As String
   toexe = "4*5"
   iVal = oSC.Eval(toexe)

   MsgBox iVal, vbOKOnly, "Value of iVal"
clean_up:
   Set oSC = Nothing
End Sub
Check out the documentation in MSDN for the scripting runtime.
Previous
Reply
Map
View

Click here to load this message in the networking platform