IFE not working with subroutines

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
wcgenzer
Newbie
Posts: 3
Joined: Tue Apr 08, 2003 8:20 pm

IFE not working with subroutines

Post by wcgenzer » Tue Apr 29, 2003 10:33 pm

I'm having trouble with IFE>, it appears it only works with Label> and not SRT>. Any time I try to use the IFE> command and if the file exists when using a SUB> label, I get a message saying the label/subroutine can't be found.... if I change the label name to an actual label, it works fine. I would assume that if a message appears saying the label/subroutine cant be found that the IFE> would work with SUB> as well as Label>... is this a bug or am I just doing something wrong?

This doesnt work:

Let>myfile=c:\test.txt
IFE>myfile,DoSomethingSub
...

SRT>DoSomethingSub
...
END>DoSomethingSub

This does:

Let>myfile=c:\test.txt
IFE>myfile,DoSomethingLabel
...

Label>DoSomethingLabel
...

And yes, I do have the latest version as of 4/29/03, v7.2.034

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

Post by support » Tue Apr 29, 2003 11:05 pm

Hi,

IFE needs a label and will not jump directly to a subroutine. That improvement is on the list. In the mean time use a label and then jump to the subroutine.
MJT Net Support
[email protected]

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