Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inputbox - Missing Something VFP7
Message
From
05/08/2003 04:59:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/08/2003 20:04:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00814468
Message ID:
00816749
Views:
24
:) A clever user would simply hit cancel.
If it's really a concern for you then follow that with a confirmation messagebox :)
Cetin

>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
Ç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
Previous
Reply
Map
View

Click here to load this message in the networking platform