Hello,
I am using Macro Scheduler Pro version 7.3.01 Registered. The following code sample fails at runtime:
VBStart
Function TSYSWaitForStringRC(waitText,b)
MsgBox waitText,65,"TSYSWaitForStringRC"
TSYSWaitForStringRC = 0
End Function
VBEnd
**BREAKPOINT**
Let>WaitText=hello world
VBEval>TSYSWaitForStringRC(%WaitText%,2),tpos
Macro Scheduler reports:
Microsoft VBScript compliation error :1006
Expected ')'
Line 2, column 26
This should work, or am I missing something?
jgambale
Moderators: JRL, Dorian (MJT support)
VBScript expects strings in quote marks. Change your VBEval line to:
VBEval>TSYSWaitForStringRC("%WaitText%",2),tpos
VBEval>TSYSWaitForStringRC("%WaitText%",2),tpos
MJT Net Support
[email protected]
[email protected]