how to calculate logical values
Good morning everybody:.....
I would like to know the following:
I have a value from a query... This value can be true or false and I need to
show in a report....''yes''... if the value of the record in the
query is true, or show ''Not'' if the value is false ...All in all I don?t
need to show true or false else ''yes'' or ''not''....please help me I need
to know how to do that
Thansk a lot........
I would like to know the following:
I have a value from a query... This value can be true or false and I need to
show in a report....''yes''... if the value of the record in the
query is true, or show ''Not'' if the value is false ...All in all I don?t
need to show true or false else ''yes'' or ''not''....please help me I need
to know how to do that
Thansk a lot........
This discussion has been closed.
Comments
If the database field is a Boolean field you can define a DisplayFormat that
looks like this:
Yes;Not
If the database field is a String field then you will need to implement an
OnGetText event-handler
if myDBPipeline['FieldName'] = 'true' then
Text := 'Yes'
else
Text := 'Not';
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com