Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy way to pluck these characters from memo field?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00679569
Message ID:
00682891
Views:
16
Error in ALINES():

*Try this One:

x = 'a' + chr(10) + ''+ chr(10) + "c"
^Here is the ERROR for ALINES()
?alines(y,x) &&Returns 2- FALSE
*In your ARRAY you now have y(1)="a",y(2)="c".
*It should be y(1)="a",y(2)="",y(3)="C"

?memlines(x) &&Returns 3 correct!

*Now Try this one:
x = 'a' + chr(10)+chr(13) + ''+ chr(10)+chr(13) + "c"
?alines(y,x) &&Wow...returns 3- Correct
*It should be y(1)="a",y(2)="",y(3)="C"

This happens when you use EDITBOXES and MEMO fields.

Greetings
Marvin Blase (tA-logistic Software GmbH)
You'll never notice the good things if you haven't seen the bad.
Previous
Reply
Map
View

Click here to load this message in the networking platform