PDA

View Full Version : Empty Text Box



Amarjit
07-03-2003, 06:07 PM
In Visual C++, how do you detect if an edit/text box is not filled in so you could use that in an if else statement?

Thanks, I've only just started programming in MFC Windows. ;)

VB
07-03-2003, 07:18 PM
I am sure there is a method to retrieve the contents of the textbox.

Then check if contents.length() == 0