Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALINES doesn't like multiple CHR(13)
Message
 
 
To
13/11/2000 18:09:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00441348
Message ID:
00441362
Views:
9
Tom,

Alines will see two chr(13) characters as a single line terminator. It sees any consequtive sequence of chr(10) and chr(13) as one terminator.

You could x = strtran( x, chr(13)+chr(13), chr(13) + " " + chr(13) ) to see your empty fields.

>I'm using an api call into an application I support that returns a group of records represented as a string, with a CHR(13) between each field and a CHR(10) at the end of each field. I've been parsing them by hand, but Tamar's presentation at GLGDW got me to looking and there it was; ALINES. Does exactly what I need except that if the field is empty in the sending app, I get two chr(13) next to each other and ALINES sees it as a single line.
>
>Has anybody else run into this, and if so do you know of a way to work around it? I'd like to use ALINES and then APPEND FROM ARRAY. Should cut my processing time significantly, if I can get it to work.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform