changing a memo text at runtime

Hi all,
I use FR3. I create a report ant put a Memo into it. I must to set the memo text at runtime with a string value. I create a varible and set memo proprty of MemoView component to [MyVar] or [<MyVar>]. (I test both). Then in delphi code, in OnBeforPrint event of FR, I set the varible value to string I want:

MyReport.Variables:=MyStringVar or MyStringConst;

but when run application and show report, what is showen in Memo is a diffrent thing. It seems that instead of string value, the converted integer value of MyStringVar is represented. (when the value of MyStringVar is a alphabet string such as 'asasdds', an error occure on showing report.)

How can I do this?

Comments

  • edited 8:31PM
    Please read the programmer manual, about passing string variables.
  • edited July 2005
    Hi Alex,
    Thank you for your help. The problem was solved. I used Report's OnGetValue event for assigning value to variable.

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.