Forum Discussion

joe_2's avatar
joe_2
Contributor
10 years ago
Solved

String to object (or code snippet)

I want to take a bunch of variables, concatenate them into a single string variable, then use that string variable as if it were a code snippet. in VBScript, thus: a = "Sys.Process(""MyProce...
  • Andrey_M's avatar
    10 years ago
    I am not an expert in VBS, but I think following should work:



    myCode = "Call " & a & ".findchild(" & b & "," & c & ",10).Click(X,Y)"

    Execute( myCode )