jgambale

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jgambale
Newbie
Posts: 1
Joined: Mon Nov 22, 2004 10:30 pm
Location: San Diego, CA

jgambale

Post by jgambale » Mon Nov 22, 2004 11:01 pm

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?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Nov 22, 2004 11:04 pm

VBScript expects strings in quote marks. Change your VBEval line to:

VBEval>TSYSWaitForStringRC("%WaitText%",2),tpos
MJT Net Support
[email protected]

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