Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search a string
Message
De
11/10/1999 12:19:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/10/1999 05:58:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00274219
Message ID:
00274971
Vues:
37
>Hi George.
>
>>> Naturally, JUSTSTEM() returns the table alias too. <<
>
>< LOL > I sorta fingured that one out on my own < g >. My ability to recognize the obvious is phenomenal.
>
>>> Another use them is parsing a key string in a treeview. Usually, these keys are separated with backslashes like directories. To see an example of this, try either JUSTFNAME(SYS(2003)) or JUSTPATH(SYS(2003)). <<
>
>Well, in my book, anything that simplifies parsing (which, at the best of times, is a real PITA) is a very cool tool.

One of the tricks is to chop a string into pieces, like this:
for i=1 to words(LongString, '\')
   chop=wordnum(LongString, i, '\')
   thisform.DoSomethingWithThe(chop)
endfor
Of course, you may use any other character to be a separator, so words() and wordnum() are the best parsing tools I've found so far.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform