Well, then you could use
open database MyData
use ?
lSelectedTable = dbf()
HTH
Jaime
>That works, but I want to use function to return the name of table to variable from that dialog box.
>
>>
>>open database MyData
>>use ?
>>
>>
>>HTH
>>Jaime
>>
>>>Is there some function to show dialog "Add Table or View" similar to GETFILE(), GETPICT()?
>>>
>>>That dialog is shown in DataEnvironment.
Why do programs stop working correctly as soon as you leave the Fox?