Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacement for USE/SELE table with IF...ELSE...ENDIF
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01257862
Message ID:
01257946
Vues:
18
>>I know there is some way of putting this on one line using IIF (I think), but I just can't recall it right now. Thanks!
>
>I prefer this method. It's less code and doesn't change the record pointers.
>
>>
>
>ckopen('schedule')
>
>
>function ckopen
>lparameters lctable
>IF !USED(lctable)
>	USE (lctable) IN 0
>ELSE
>	SELECT (lctable)
>ENDIF
>
That's fine, but it's just turning the code he (inexplicably) wants to replace with a function that has teh same code.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform