>>Line of code <<=== debug arrow >> >>Line of code >>susp >> >>lcVar1 = 'cat' <<=== the debug arrow should be here >>lcVar2 = 'dog' >>>>
>>Line of code >> <<=== debug arrow >>Line of code >>susp >> >>lcVar1 = 'cat' >>lcVar2 = 'dog' <<=== the debug arrow should be here >>>>
lcFile = FILETOSTR("c:\temp\myprog.prg") * Note: You may need to extend this k variable to include other characters you use properly in your program. k = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*&:\-.,=()'+[]$?_<>;!" + CHR(34) + CHR(9) * Perform the conversion, to remove everything except line ending characters lcFile = STRTRAN(CHRTRAN(lcFile, k, SPACE(LEN(k))), SPACE(1), SPACE(0)) *_cliptext = lcFile * Note: You can test it out by pasting the clipboard at this step into a text editor and see other characters you need to filter out. * Save it back out and bring it up in the hex editor STRTOFILE(lcFile, "c:\temp\myprog.hex") DO (HOME() + "tools\hexedit\hexedit.app") WITH "c:\temp\myprog.hex"When the window pops up, you should see only consistent line characters throughout the file, such as nothing but matched pairs of 0D,0A repeated throughout. If it ever changes or shifts, then you likely have some non-standard line endings which is causing the problem.