Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null Values

Status
Not open for further replies.

gust1480

Programmer
Mar 19, 2002
148
0
0
PH
How do i determine if an inputed value has a Null value?! Cause I have a program that will as for you to input a number and it is possible for the user not to input at all so how do i determine it?!
 
You could check the field as shown below:

Code:
If your_field NOT NUMERIC
   send error message or intialize your_field with zeros

I hope this is what you were looking for.

prakal
 

if ur field is defined as ALphanumberic ( usual case ) ,
then u can check like below

if field is low-values
send error map
endif
 
You must first find out if your MDT is on or off by default. If it is on the field will automaticly take the deufault for te field (zero if numeric and space if alpha), if mdt is off You can check te length field and the attribute bite. If the attribute byte has a value of hex 80 then te eof key has been pressed (lenght wil be zero) else the length field wil have a value higher than zero. After these testst You can preform tests for nummeric if nessecerry.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top