Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap user's selection from use ?
Message
De
27/09/2002 14:30:56
 
 
À
27/09/2002 14:25:58
Gerald Blake
Blake Bookkeeping, Inc.
Honolulu, Hawaii, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00705374
Message ID:
00705378
Vues:
11
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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform