BombDrop
11-09-2004, 08:52 AM
I wish to allow a user to execute a small VBScript that they write within my app. I though i could get what i want vai the Windows Scripting Host but am unable to achive my aims. can any one help.
Thanks
:huh: :huh:
00100b
11-09-2004, 09:08 AM
See the Microsoft Script Control component.
Example usage:
Private Sub Command1_Click()
Dim strcode
strcode = "Sub VBSMain() " & vbNewLine & "MsgBox " & Chr(34) & "Foo" & Chr(34) & vbNewLine & "End Sub"
With Me.ScriptControl1
.AddCode strcode
.Run "VBSMain"
End With
End Sub
BombDrop
11-09-2004, 09:23 AM
Thanks alot mate that is great, just what i wanted!!
:D :D :D :D