Results 1 to 18 of 18

Thread: Eval

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263

    Eval

    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):

    Code:
        Dim sc As New ScriptControl
        Dim aryMe(3) As Variant
        
        sc.Language = "VBScript"
        sc.AddObject "var", Form1
        sc.ExecuteStatement ("aryMe(0) = 'Hello'")
    As you can see, I'm surrounding the string "Hello" with single ticks...not working (syntax error). Any thoughts would be appreciated.

    When I run it with "var." in front of "aryMe(0)", I still get the same error.
    Last edited by j_jewell; Apr 22nd, 2004 at 03:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width