ReadLN not always correctly reading into a variable...

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
altquark
Newbie
Posts: 5
Joined: Thu Jan 02, 2003 8:55 pm
Location: Jacksonville, FL
Contact:

ReadLN not always correctly reading into a variable...

Post by altquark » Thu Jan 02, 2003 9:04 pm

Hi all !

I have a little script that does the following :

Label>GetItem
Random>850,line
ReadLn>e:\msched\data\items.txt,line,itemno
If>itemno=##EOF##,GetItem
Send Character/Text>%itemno%


Now what seems to happen is every now and then - very intermittently - %itemno% outputs "line,itemno" instead of a read line. Of course, I can place a check for this in the code - but any reason why ReadLn would do this ?
Jon Steel
Oracle EnterpriseOne Technical Specialist
erpSOURCING LLC
http://www.erpsourcing.com
(904) 382 5701

Ernest

Post by Ernest » Thu Jan 02, 2003 9:25 pm

Hi,
:idea: Have a try by replacing the literal "line" with the variable %line%.
The problem seems to identify which line should be read.

Code: Select all

ReadLn>e:\msched\data\items.txt,%line%,itemno
Hope that helps.

Ernest

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