Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inputbox - Missing Something VFP7
Message
De
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:
00814475
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform