How can I get memo object.
Hi,
I try to get memo object but I have a problem.
this is working:
MemoColorObj := TfrxMemoView(Page1.FindObject('Memo2'));
MemoColorObj.Color := $00111111;
but
I need to like that
TfrxMemoView(FindObject('Memo2'));
so I don't need to use "Page1" because I don't know pagename.
and
I try to that but don't work.
_______________________
memo := Report.FindObject('Memo2') as TfrxMemoView;
memo.text := 'test';
________________________
var
x: TfrxComponent;
begin
x := frxReport.Report.FindObject('Memo2');
Thanks in advance.
I try to get memo object but I have a problem.
this is working:
MemoColorObj := TfrxMemoView(Page1.FindObject('Memo2'));
MemoColorObj.Color := $00111111;
but
I need to like that
TfrxMemoView(FindObject('Memo2'));
so I don't need to use "Page1" because I don't know pagename.
and
I try to that but don't work.
_______________________
memo := Report.FindObject('Memo2') as TfrxMemoView;
memo.text := 'test';
________________________
var
x: TfrxComponent;
begin
x := frxReport.Report.FindObject('Memo2');
Thanks in advance.
Comments
memoCheckCode = dynamic_cast< TfrxMemoView * > (frReport->FindComponent("mailcheckcode"));
this is CBC code
MemoColorObj := TfrxMemoView(FindFrxComp('Memo2'));