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

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:48AM
    the ogv event is fired when a memo contains a variable within [] that cannot be resolved.
    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.
  • edited 8:48AM
    Thanks, I forgot the []. [img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Peter.[/img]

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.