teletubby5e
Technical User
I am working on a script that reads a text file and performas a change on that record number. I currently have it displayting via statmsg the record number it is on in case the script bombs out, i can see where the problem with that record lies. also, i would like to know about the overall progress of the script. ideally, i would like it to count the number of lines in the text file, and then report back record 1 of 19234, or whatever, but i cant get past the first step even, to say record 1. here is what i have so far, but i keep getting the number 1 reported. thanks, for any ideas ...
RECORD1=1
ITOA RECORD1 RECORD1s
STATMSG "EDITING PART NUMBER %s, RECORD NUMBER %s" NUM1 RECORD1s
ATOI RECORD1s RECORD1
RECORD1=RECORD1+1
RECORD1=1
ITOA RECORD1 RECORD1s
STATMSG "EDITING PART NUMBER %s, RECORD NUMBER %s" NUM1 RECORD1s
ATOI RECORD1s RECORD1
RECORD1=RECORD1+1