General information
Title:
Problem with InputBox() Function
Pressing Cancel on the inputbox() function retuns a empty value for me in the following code:
Y = "Default Value"
Y = INPUTBOX("TypeHere","Input ",Y,5000)
? Y
According to the VFP documention, by pressing Cancel,Escape, or waiting for the box to timeout, InputBox() should return the default value parameter which in this case should be equal to Y (or "Default Value"). The problem here is that it's impossible to distinguish between when a person actually cleared the value of the textbox and then pressed OK, or if the user hit Cancel. This is important because to me, Cancel means abort any changes to the default value. How can I positively identify when a user is pressing Cancel, or entering a no value into the InputBox?
Thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only