OnGetValue Event & Variable

When using FR 3.14 I am having a problem with getting a variable value into my report. The value is assigned before ShowReport is called but, in the OnGetValue event the 'VarName' parameter seems to be passed an frxDBDataset fieldname, rather than the variable name as I would expect.

This is part of the code from the OnGetValue event of the report


if CompareText(VarName,'Net Amount') = 0 then
Value := OSNet
else

and, in this case 'VarName' has a value of frxDBDataset2."NetAmount", instead of the variable name 'Net Amount' therefore it does not get the value of OSNet assigned to it's value.

Can someone tell me what I'm doing wrong here. ;)

Thanks for any assistance.

Graham A Welsh
Targeted Software Solutions Ltd

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.