Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacement for USE/SELE table with IF...ELSE...ENDIF
Message
De
02/10/2007 10:54:25
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
02/10/2007 10:34:44
Walter Meester
HoogkarspelPays-Bas
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:
01257909
Vues:
17
>>>>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!
>>>>
>>>>
>>>>IF NOT USED('Schedule')
>>>>	USE Schedule IN 0
>>>>ENDIF
>>>SELECT Schedule
>>>>
>>
>>Ok, I thought there was a one-line way of doing it, but maybe not.
>
>Probably better than Torre's as it is not reopening a table when it is already opened:
>
>
USE (IIF(USED('Schedule'),"","Schedule")) IN 0
>
>
>Walter

That's the one I was looking for. Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform