FieldIsNull on alliased fields

rotursoftrotursoft Slovakia
edited 8:55AM in FastReport 2.xx VCL
Hi all!

I tried to use FieldIsNull and I got this experience:

DatumVratenia.Lines.Clear;
if not [FieldIsNull('ib1."DATUM_VRATENIA"')] then
DatumVratenia.Lines.Add([FORMATDATETIME('dd.mm.yyyy',[MASTER."DATUM_VRATENIA"])]);


^^^ this code is working fine, but

I very often use alias names for fields, because I sometimes use report from more parts of my programs and datasources names may be different but alias is always equal from these parts. If I try to use in FieldsIsNull function field with alias notation, function always return same result.

Why?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.