Type NULL into type OleStr

hello,

i am new here and on FastReport. I am not a program specialist and i use fastreport as reporting software in a specific software. I tried to use the same layout including pascal code that works in a software where fastreport is 4.1.17 in a new evolution of the same software where fastreport is 4.13.1
But in presence of codes as
if (Pos('BnF',<frUserDataset.wpname>)>0) then AR.Visible := true else AR.visible := false;

it doesn't work on the new evolution of the software. i receive the following error messag:
The following error(s) have occurred: Could not convert variant of type (Null) into type (OleStr). Unknown variable or datafield: fruserdataset.wpname

Anyone able to help me? thank you.

Umberto Ferrari
italy

Comments

  • gpigpi
    edited 1:59PM
    Try
    if (Pos('BnF',<frUserDataset."wpname">)>0) then AR.Visible := true else AR.visible := false;
    

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.