![]() |
|
#1
|
|||
|
|||
Removing "Please enter an integer" messageHi all,
I am using an Edit Control to input an integer (integer type setting). When I delete the field to blank, I always get the message "Please enter an integer" at the "UpdateData( TRUE )". How can removing this message without too much modify to the program (old program and this field is used a lot). Thank you in advance |
|||
|
#2
|
||||
|
||||
Re: Removing "Please enter an integer" messageThat'll require reworking (overloading) the DDV checks, not sure how far you want to take it though -- search the VC++ help for: TN026 for more information. Why not just leave a zero?
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: Removing "Please enter an integer" messageThank you for the advice. I did a GetWindowText before the Update(TRUE) and set to 0 if blank and it works well. Only that I have to catch the EventChanged on the item. I would presume it is easier than rewrite the DDV.
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Message Class | TransformedBG | C++ Forum | 5 | 29-Nov-2006 22:28 |
| "Please enter an integer" Problem! | httpeyman | MS Visual C++ / MFC Forum | 1 | 14-Jul-2005 00:28 |
| Microsoft SQL Server :: SQL Server message 241, state 1, severity 16 | lyuboe | MySQL / PHP Forum | 0 | 11-May-2005 05:31 |
| Anyone can write a program code for this??? | chriskan76 | C Programming Language | 1 | 19-Oct-2004 21:25 |
| Array..... | chriskan76 | C Programming Language | 4 | 18-Oct-2004 15:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The