Dire need of help guys. I am trying to assign a string value to an existing variable, using the ScriptControl. Anyone know how to do this? Here's what I have (nuts and bolts of my problem):
As you can see, I'm surrounding the string "Hello" with single ticks...not working (syntax error). Any thoughts would be appreciated.Code:Dim sc As New ScriptControl Dim aryMe(3) As Variant sc.Language = "VBScript" sc.AddObject "var", Form1 sc.ExecuteStatement ("aryMe(0) = 'Hello'")
When I run it with "var." in front of "aryMe(0)", I still get the same error.




Reply With Quote