Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inputbox - Missing Something VFP7
Message
De
02/08/2003 20:04:35
 
 
À
29/07/2003 08:39:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00814468
Message ID:
00816253
Vues:
21
Hi Cetin!

So...., how do I tell the difference between a user going in and removing the default value and clicking OK as opposed to the user seeing the default value, deciding not to change it and clicking the cancel?

Jim

>>I'm missing something using the inputbox, reading the help, it says that pressing the cancel, esc or when the timeout happens, the cdefaultvalue will be returned. In my case, I'm getting a blank value when the cancel button is pressed.
>>
>>
>>lcCarrier=[KIRK INSURANCE COMPANY]
>>lcPolicy=[1234567]
>>lcUpdateValue=INPUTBOX([Add/Edit Policy Number for ]+;
>lcCarrier,[Update Policy Data],lcPolicy,20000,lcPolicy)
>>
>>
>>
>>Thanks for any help
>
>Kirk,
>In my version of help it says :
>"Remarks
>The dialog box displays an edit box and OK and Cancel buttons. The OK button always returns the contents of the text box. The Cancel button always returns an empty string. A timeout will return the specified text in cTimeoutValue or an empty string if cTimeoutValue is not passed."
>
>If 'Cancel' returned the default value then there wouldn't be a way of detecting user pressed 'Cancel'
>Cetin
Jim Philippi

quando omni flunkus moritati
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform