Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to 'know' current working area has/or not open table
Message
De
16/10/1998 06:44:54
 
 
À
16/10/1998 06:33:48
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00147372
Message ID:
00147402
Vues:
45
>>>I have NEVER used alias() before.
>>>I usually use select() instead. Will
>>>you forget about the alias you created? :)
>>knowing if anything is open in the currently selected area,
>>lcOpenArea = ALIAS(SELECT())
>>IF EMPTY(lcOpenArea)
>> * No table/view/cursor is open
>>ENDIF
>
>Too complicated. just check dbf() will do.
>if you prefer, use dbf(select()).
>
>Anyway, I found it quite funny if you just
>forgot the alias (assigned by YOU) used to
>open the last dbf(). Maybe you should just
>close all and re-open the tables.

The point I'm trying to make here is that dbf() returns table name with the whole path, while alias() returns the name in use in your data session. IOW, dbf() isn't what I would use on views and cursors, since they reside in your temp folder.
Danijel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform