Search found 3 matches

by tomasz
Wed May 19, 2004 11:53 pm
Forum: Technical / Scripting
Topic: How do you declare a string, e.g. '1998-2004' ?
Replies: 3
Views: 4831

ok, but now when you pass it as a parameter to another Macro, it gets evaluated as an integer. For example:


Macro>NextScript /parameter=%text%


Is there any way to force a type, i.e. string type, in the MJT language?
tomasz
by tomasz
Wed May 19, 2004 5:03 pm
Forum: Technical / Scripting
Topic: How do you declare a string, e.g. '1998-2004' ?
Replies: 3
Views: 4831

How do you declare a string, e.g. '1998-2004' ?

Let>text=1998-2004 MessageModal>%text% will show the value of '-6' because the variable 'text' automatically evaluates to an integer. The following workarounds are ok within one script, but when I pass the variable to another script, it gets evaluated as an integer again. // Workaround 1 Let>text=1 ...
by tomasz
Wed May 19, 2004 4:55 pm
Forum: Beginners
Topic: How do you declare a string, e.g. '1998-2004' ?
Replies: 4
Views: 10492

How do you declare a string, e.g. '1998-2004' ?

Let>text=1998-2004 MessageModal>%text% will show the value of '-6' because the variable 'text' automatically evaluates to an integer. The following workarounds are ok within one script, but when I pass the variable to another script, it gets evaluated as an integer again. // Workaround 1 Let>text=1 ...
cron
Sign up to our newsletter for free automation tips, tricks & discounts