Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap user's selection from use ?
Message
From
28/09/2002 05:03:34
 
 
To
27/09/2002 14:25:58
Gerald Blake
Blake Bookkeeping, Inc.
Honolulu, Hawaii, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705374
Message ID:
00705538
Views:
8
>I want to allow my user to choose a table by use ?. I want to trap his selection and depending on the results of his choice my program will act accordingly. For instance, if he aborted and did not use a dbf file, I may end the procedure etc.
>How can I trap the results of my user's choice into a variable?

Assuming that you were in a SELECT area with no file open, you could check the file name opened by using the DBF function:
SELECT 0
USE ?
cFileNameOpened = DBF()
cAliasUsed = ALIAS()
cFileNameOpened and cAliasUsed will be empty strings if no file is opened.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform