I can't seem to see a Label> in our outside of a subroutine. So if I use a IF> statement and try to call a label inside a SRT it gives me an error every time.
Can I call another SRT from an IF statement? what's the trick?
Thanks!
IF statement inside SRT(SubRoutines)
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
Yes, you can have Labels, Gotos and Ifs inside subroutines, and I don't know of any issues with this. I have macros that do this. Can even jump out and into subroutines.
Perhaps there is something amiss with your specific script - feel free to send it to [email protected] for a checkover.
Yes, you can have Labels, Gotos and Ifs inside subroutines, and I don't know of any issues with this. I have macros that do this. Can even jump out and into subroutines.
Perhaps there is something amiss with your specific script - feel free to send it to [email protected] for a checkover.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?