VBEval not working

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
billtubbs
Junior Coder
Posts: 32
Joined: Thu Dec 07, 2006 10:00 pm
Location: Vancouver
Contact:

VBEval not working

Post by billtubbs » Mon Jan 14, 2008 8:47 pm

This must be so obvious I can't see it. For some reason the VBEval command is not working in my script. I tried three examples of VBEval commands from the Help Documentation.

Code: Select all

VBEval>(1+2),three
VBEval>MsgBox("Hello World"),nul
VBEval>Timer,elapsed
Let>test=test message
MessageModal>three=%three%, elapsed=%elapsed%, test=%test%
The above code returns the following

Code: Select all

three=, elapsed=, test=test message

billtubbs
Junior Coder
Posts: 32
Joined: Thu Dec 07, 2006 10:00 pm
Location: Vancouver
Contact:

Problem solved

Post by billtubbs » Mon Jan 14, 2008 9:06 pm

I fixed it. I didn't realise you need to have VBStart/End commands before any VBEval commands. Would be nice if it said this in the VBEval help documentation, or if VBEval generated an error when this was not the case.

Here is the working script:

Code: Select all

VBStart
VBEnd

VBEval>(1+2),three
VBEval>MsgBox("Hello World"),nul
VBEval>Timer,elapsed
Let>test=test message
MessageModal>three=%three%, elapsed=%elapsed%, test=%test%

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