General information
Category:
Coding, syntax & commands
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only