OnGetValue never executes
Hi All,
Any ideas why an OnGetValue event will not work?
I have set the OnGetValue to frxReportGetValue but it will never execute.
Are there some rules I must keep in mind?
My procedure is:
procedure TForm.frxReportGetValue(const VarName: string; var Value: Variant);
begin
ShowMessage('frxReportGetValue');
If CompareText(VarName, 'Memo_SomeMemo') = 0 Then Value := 'Some Text';
end;
The Messagebox will never appear.
I have version 4.7.76.
Delphi 2009 Ent.
Thanks.
Peter
Any ideas why an OnGetValue event will not work?
I have set the OnGetValue to frxReportGetValue but it will never execute.
Are there some rules I must keep in mind?
My procedure is:
procedure TForm.frxReportGetValue(const VarName: string; var Value: Variant);
begin
ShowMessage('frxReportGetValue');
If CompareText(VarName, 'Memo_SomeMemo') = 0 Then Value := 'Some Text';
end;
The Messagebox will never appear.
I have version 4.7.76.
Delphi 2009 Ent.
Thanks.
Peter
Comments
if you are trying to preview a report within the ide by selecting preview it will not fire since your apps
delphi code is not compiled and running.
Also with 2009 you will probably have to use ansicomparetext.