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
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