Receiving value back from VBScript function

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
jhanasik
Newbie
Posts: 11
Joined: Mon Jan 27, 2003 5:56 pm

Receiving value back from VBScript function

Post by jhanasik » Fri May 27, 2005 10:16 am

In trying to understand the relationship between macro variables and VBScript variables I have been playing around with the VBEval command, trying to get it to pass a value back from the function. Using the example in the documentation for VBEval I can not seem to get it to work properly.


VBSTART


Function PointlessStringExample(somestring)

DisplayMessage(somestring)
StringExample = somestring

End Function

VBEND


Let>text=Hello World
VBEval>PointlessStringExample("%text%"),sametext



The documentation states that the results are placed in the field following the comma, in this case sametext, but when I display the results of sametext it is blank. What am I missing here? How can I get the VBScript value passed back to Macro Scheduler script?

Thanks

jhanasik
Newbie
Posts: 11
Joined: Mon Jan 27, 2003 5:56 pm

Post by jhanasik » Fri May 27, 2005 2:04 pm

I figured it out. Forgetting all of the VBScripts rules!!!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts