Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
For each line in string variable
Message
De
04/05/2006 16:40:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01119378
Message ID:
01119386
Vues:
23
>>Hello,
>>I have a string variable complete with line breaks and carriage returns. Is there a way I can create a loop for each line in that variable? I need to offset each line by 1 space, and I think this loop is the only way of doing it.
>>
>>Thanks in advance,
>>MAC
>
>?
>If you want just to offset try this:
>
>#define CRLF CHR(13)+CHR(10)
>lcString = [ ] + STRTRAN(lcString,CRLF,CRLF+[ ])
>
>
>Did the ALINES() function exists in VFP7? Never used it and I am not sure.

I think it was introduced in version 6.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform