Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing Data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00334176
Message ID:
00334181
Vues:
18
>Hi All,
>
>I have a variable in a program that is being populated by a string of data. In this data there are CR/LF between the fields that I need (one field between each CR/LF). The fields are variable lengths and are not delimited. Does anyone have a suggestion on how to parse the data out from between the CR/LF's?
>
>Hope this question makes sense!
>
>Thanks
>Greg

Hi Greg,

Look at the ALINES() function. It takes either memo or character data and breaks it apart into one array element for each group of text between CHR(10)/CHR(13) combinations, ignoring the setting of MEMOWIDTH.

Be aware that ALINES() does not strip trailing blanks *by default* like the MLINE() function -- it will still do so if you pass the correct parameter.

HTH.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform