Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap user's selection from use ?
Message
From
27/09/2002 14:30:56
 
 
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:
00705378
Views:
9
How about:
LOCAL lctable
lctable=""
lctable=GETFILE("dbf")
DO CASE
CASE RIGHT(lctable,LEN(ALLT(lctable))-RAT('\',lctable))="MYFILE.DBF"
    USE (lctable) IN 0
    SELE (lctable)
CASE EMPTY(lctable)
    *Do something here
OTHERWISE
    *Do something here
ENDCASE
>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?
>
>Jerry
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform