Variant in rap
how do i check if the field's value is null?
this code won't work:
if MyDataSet['FIELD01'] = null then
Value := 'Missing'
else
Value := 'Something..';
any idea?
thanks
--- posted by geoForum on http://delphi.newswhat.com
this code won't work:
if MyDataSet['FIELD01'] = null then
Value := 'Missing'
else
Value := 'Something..';
any idea?
thanks
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
Tech Tip: RAP: Checking for Null Data Values
----------------------------------------------
The DataPipeline.FieldObjects[] array property provides access to the
TppField objects. TppField has an IsNull boolean property.
The notation is DataPipeline.FieldObjects['FieldName'].IsNull
example:
if Customer.FieldObjects['Addr1'].IsNull then
ShowMessage('field value is null');
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
end10
--- posted by geoForum on http://delphi.newswhat.com