Confusion with SRT in MACRO

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Confusion with SRT in MACRO

Post by Jerry Thomas » Mon Nov 08, 2010 4:45 pm

I am running V12 and have a problem of SRT not working in a macro. There is an error message I saw earlier that states
"Subroutine/Label Not Found!".
I corrected the error, but the message makes me think that this should work.

Now when I run this, the SRT is skipped. I get the START and END text written to my log file, but not TEST.
As soon as I change SRT to Label, then it works.

Should this work?

Code: Select all

MACRO>%SCRIPT_DIR%\MAC.scp /A=100
...

<MAC>
WriteLn>%DESKTOP_DIR%\LogFile.txt,nrslt,START

SRT>A
  WriteLn>%DESKTOP_DIR%\LogFile.txt,nrslt,TEST
End>A

WriteLn>%DESKTOP_DIR%\LogFile.txt,nrslt,END
Thanks,
Jerry

[email protected]

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Post by Jerry Thomas » Mon Nov 08, 2010 6:00 pm

Answering my own question here...

I figured out, at the start of the MACRO, I need to include a

Goto>

Otherwise it just reads throiugh the file and executes the first code it gets to.

So on the same idea, I would need a
GoSub>
Thanks,
Jerry

[email protected]

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