Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
For each line in string variable
Message
De
04/05/2006 17:08:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/05/2006 16:29:03
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
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:
01119410
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>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

No need to loop.
lcString = strtran(m.lcString,chr(13)+chr(10),chr(13)+chr(10)+chr(32))
PS:alines() would parse lines to an array, memlines(), mline() could be used as well provided max line lenght is 1024.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform