Finding cr Character in Lines read from a file???

Dave dave at looktowindward.com
Fri Jun 29 11:06:50 EDT 2007


Hi,

I have a file that has "cr" (0x0D) terminators on each line.

If I have the line in "myLine" and do this:

repeat with myIndex = 1 to the length of  myLine
if char myIndex of myLine = cr then
--do something at end of line
end if
end repeat

It never finds the cr. I looked in the file and conformed that the  
lines end in a single cr character.

When I did a charToNum() on cr is returns 0x0A which is a lf!!!!!

What gives? How can I find the real cr is a variable?


All the Best
Dave




More information about the use-livecode mailing list