Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. empty fields in CIPAddresCtrl

empty fields in CIPAddresCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    viperlogic
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • V viperlogic

      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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups