Click to See Complete Forum and Search --> : DDV_MinMaxDouble


zach
April 5th, 1999, 11:45 AM
Hello. I am using DDV_MinMaxDouble() to validate a number entered into an edit box. The number should be in the range of 500 to 2000, however, when I start to enter the digits of a number into the edit box, it tries to validate each individual digit within the specified range of 500 to 2000. So if I want to enter 700 in the edit box, I type 7, and then I get a message box saying to enter a number within the specified range. Is there a way to change it so I can enter the whole number, 700, and then for this number to be checked that it is in the correct range? I don't want it to check each individual digit. Thank you.

Michael Decker
April 5th, 1999, 02:38 PM
Do you have another callback in there somewhere? Such as the EN_UPDATE or EN_CHANGE? If so and you are doing an UpdateData() call, then that might be your problem.