Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select() or alias()
Message
De
16/01/2020 16:36:39
 
 
À
16/01/2020 08:14:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01672639
Message ID:
01672647
Vues:
57
>Select() (with no parameters) will return the current work area, while Alias() will return the alias. If Alias() is empty, then no table is used in the current work area.'
>
>Both Select() and Alias() are in Help, maybe your help files are corrupted?
>
>Help on Select: Returns the number of the currently selected work area or the highest-numbered unused work area.
>Help on Alias():
>Parameters
>nWorkArea
>Specifies the work area number for which ALIAS( ) returns the table alias.
>
>cTableAlias
>Specifies the table alias for which ALIAS( ) returns the table alias.
>
>If you omit nWorkArea or cTableAlias, ALIAS( ) returns the alias of the table open in the current work area. An empty string is returned if a table isn't open in the current or specified work area.

>
>>Hi,
>>
>>I have to update an old subclass which is derived from one of the Wizards : method updaterows on txtbtns in wizbtns.vcx
>>
>>Here I found:
>>lnOldSelect = Select()
>>
>>and thus I added
>>lcOldSelect = alias()
>>
>>now I am in following errorsituation where lnSelect = 8 and lcOldSelect = [ ]
>>I wonder what is the meaning of Select() with an emply alias()
>>
>>Select() nor Alias() I cannot find in the Help.
>>Regards,
>>Koen
Hi,
Restarted VFP9 and voila both Select Command and ALias() are visible agqin. Thanks.
So I must understand you can open a Workarea and not open a table in that Workarea, a situation which is strange, except for Workarea(1)
I shall have to recode this part in the class.
Thanks,
Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform