Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inputbox - Missing Something VFP7
Message
From
02/08/2003 20:04:35
 
 
To
29/07/2003 08:39:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00814468
Message ID:
00816253
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform