Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Tip - #2 Today
Message
De
08/07/1999 12:56:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00238801
Message ID:
00238944
Vues:
22
>Hi gang,
>
>While I realize that's there's already been one "Tip of the Day" here's a bonus one.
>
>If you've ever had to deal with parsing a "Table.Field" expression, VFP 6.0 added some functions that can make this easier. Of course, they weren't designed for this purpose, but they can be used to do this. The functions are JUSTSTEM(), JUSTEXT() and FORCEEXT(). Here are some sample:
>lcalias = 'mytable'
>lcfield = 'myfield'
>lctableexpr = FORCEEXT(lcalias, lcfield) && returns 'mytable.myfield'
>lcnewexpr = FORCEEXT(lctableexpr, 'yourfield') && 'mytable.yourfield'
>lcjustalias = JUSTSTEM(lctableexpr) && 'mytable'
>lcjustfield = JUSTEXT(lctableexpr) && 'myfield'
This worked as early as fpath.plb, so for those who may need this in FPD/FPW 2.5 or 2.6 - just do it.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform