How can I either simulate or actually return a value back to the parent script from a child script called using the CallScript keyword?
If I can't do an...
then perhaps I can SET and env variable, in which case is there a built in function or do I have to call a SetEnv() function from a win32 dll?
Let go Luke!
What you can you is define your function in a .sbl after declaring in .sbh and then return the value from there.
For example, if testfunction is name of the called function then before End Function statement you can write following statement:
testfunction = returnvalue
You can then get the returned value in the calling script.
A highly advanced bug is indistinguishable from a feature.
I'm using Robot v2003.06.00.436.000
The call in my parent script is...
putting this in an .sbl lib means I can't do verification points (according to the help).
putting the code for aScript into an .sbl
Then instead of calling the script, call a function which is there in the .sbl. If you have a verification point in parent script and you are calling a function then that function can access the verification point.
Just try this.
You could just create a global variable in a header file and when you exit the called script you could set that variable. In you parent script you can get the value of the global variable.
In your Parent Script--
Dim Variable as Type
Variable = GlobalVariable
In you Child Script the last thing you do is set the global variable
'ALL YOUR LOGIC...
GlobalVariable = Whatever