GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Dec-2006, 14:24
lti2000 lti2000 is offline
New Member
 
Join Date: Dec 2006
Posts: 2
lti2000 is on a distinguished road

Removing "Please enter an integer" message


Hi 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  
Old 02-Dec-2006, 20:24
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,140
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Removing "Please enter an integer" message


That'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  
Old 02-Dec-2006, 23:04
lti2000 lti2000 is offline
New Member
 
Join Date: Dec 2006
Posts: 2
lti2000 is on a distinguished road

Re: Removing "Please enter an integer" message


Thank 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 GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 05:04.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.