Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please review this procedure to open a table...
Message
De
15/06/2009 11:44:21
 
 
À
15/06/2009 11:36:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01406084
Message ID:
01406105
Vues:
52
>>Hi Matt,
>>
>>I agree with Naomi on the name.
>>In addition, your procedure assumes that table file name and alias name must be the same?, so it cannot open a table twice.
>
> You can pass in an Alias to use a different name, and open as many times as you want, but if you don't, it will use the table name
>

Oops, sorry - I somehow misread your Return line (probably because of reading too quickly, and because I had expected a "Return Used(theDesiredAlias)" there.

[Edited:] Or didn't I?, this somehow looks wrong to me, given that TableName does not necessarily have to equal AliasName (and in addition to Sergey's point about fullpath and extension):
>> Return (Upper(Alias())==Upper(tcTableName))



Regards
-Stefan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform