Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading variables from a character delimited field.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00484959
Message ID:
00485240
Vues:
17
Hi Brian.

>> Hello, I have a field in my database that holds information for me that is Semi-Colon Delimited. Is there a function in VFP to read the variables to an array or a group of variables? <<

Just to add to all the other answers you have received, VFP doesn't have a native function to do this (yet), but there are a couple in FoxTools.FLL that are very handy to do this. If you have the FoxTools library loaded, you can use code like this to store your sting to an array:
LOCAL lnVarCount, lnVar
lnVarCount = WORDS( < MyString >, ';' )
DIMENSION MyArray[ lnVarCount ]

FOR lnVar = 1 TO lnVarCnt
   MyArray[ lnVar ] = WORDNUM( < MyString >, lnVar, ';' )
ENDFOR
Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform