My existing scripts containing IFC stopped working when I upgraded to Version 7.3...
This is undocumented, but the IFC statement in version 7.3 must have at least a comma denoting that the false label name is null or it will no longer work correctly.
For instance... this old code will yield erroneous output;
GetFileList>U:\Reports\EDIF_BATCH\*.txt,files
Separate>files,;,file_names
MessageModal>Num Files: %file_names_count%
Let>k=0
Repeat>k
Let>k=k+1
IfFileChanged>file_names_%k%,NOPE
Label>YUP
Let>FYUP=file_names_%k%
Messagemodal>Yes-More than 1%CRLF%%FYUP%
Goto>SKIPNO
Label>NOPE
Let>FNOPE=file_names_%k%
Messagemodal>No-Less than 1%CRLF%%FNOPE%
Label>SKIPNO
Until>k,file_names_count
If I change the line containing the IFC to;
IfFileChanged>file_names_%k%,U:\Reports\EDIF_BATCH\*.txt,files
Separate>files,;,file_names
MessageModal>Num Files: %file_names_count%
Let>k=0
Repeat>k
Let>k=k+1
IfFileChanged>file_names_%k%,YUP
Let>FYUP=file_names_%k%
Messagemodal>Yes-More than 1%CRLF%%FYUP%
Goto>SKIPNO
Label>NOPE
Let>FNOPE=file_names_%k%
Messagemodal>No-Less than 1%CRLF%%FNOPE%
Label>SKIPNO
Until>k,file_names_count
Hope this saves some of you some time.
More IfFileChanged Fun
Moderators: JRL, Dorian (MJT support)
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada
That's not good, it should be backward compatible. Thanks for letting us know. We will fix this immediately and issue an update asap.
MJT Net Support
[email protected]
[email protected]