Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty last line not recognized by ALINES()
Message
De
24/05/2003 14:22:16
 
 
À
24/05/2003 13:21:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00792524
Message ID:
00792582
Vues:
19
>>Peter,
>>
>>Why not always add crlf to the last element ?
>>instead of
>>
lcC = "a" + ccCRLF + "b" + ccCRLF + "c" + ccCRLF + lcSomeVar
>>do
>>
lcC = "a" + ccCRLF + "b" + ccCRLF + "c" + ccCRLF + lcSomeVar + ccCRLF
>>then alines() will always return 4
>
>Good idea! It should work in vfp7 (and vfp8) at least. I've asked MS to repair the bug (see my reply to Sergey). I guess many developers use your technique. This makes it allmost or certainly a necessity for the VFPteam to implement the repair with caution.
>
>Thanks!

Peter,

Also if you never write the ending crlf use
alines(Arrayname, expr + crlf)
As an aside, I have written my own routine to deal with those cases where there can be an empty trailing field
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform