Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy way to pluck these characters from memo field?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00679569
Message ID:
00682891
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform