Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I hate it, when it happens!
Message
 
 
À
02/11/2001 19:33:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00576933
Message ID:
00577066
Vues:
39
>>>>Here is a tip I learned at WhilFest this week to close a table without getting error. Instead of this code:
>>>>if used('mytable')
>>>>   use in mytable
>>>>endif
>>>>Someone showed this:
Use in select('mytable')
>This relies on the undocumented behaviour of SELECT() - that it returns 0 if the alias is not found, rather than throwing an error. IMO it's an example of "cute" code vs. code that is self-documenting and that doesn't rely on undocumented features.
>>
>>In this case we souldn't use select('mytable') at all because it's return value isn't documented. :)
>
>The value *is* documented if "mytable" is USED().

Nope. It's not documented. At least not in VFP 6/7 help.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform