empty fields in CIPAddresCtrl
-
i want to check if one field is left empty, BYTE Field_1a, Field_1b, Field_1c, Field_1d; updatedata() cipaddress.getaddress(Field_1a, Field_1b, Field_1c, Field_1d) if (Field_1a == NULL) MessageBox("Error") the problem is if the field is left empty the if statement is not run. what shoud i be checking to see if the field is empty? thanks
-
i want to check if one field is left empty, BYTE Field_1a, Field_1b, Field_1c, Field_1d; updatedata() cipaddress.getaddress(Field_1a, Field_1b, Field_1c, Field_1d) if (Field_1a == NULL) MessageBox("Error") the problem is if the field is left empty the if statement is not run. what shoud i be checking to see if the field is empty? thanks
viperlogic wrote:
what shoud i be checking to see if the field is empty?
CIPAddressCtrl::GetAddress()
returns the number of non-blank fields.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb