How to call Memo.clear
Hi all!
Could anyone tell me how to call memo1.clear from my script?
I have a Memo1:TMemo and Script:TfsScript...
I have the codeline "Memo1.Clear;" in my script.
I get "undeclared identifier" on "Clear"..
Is there any way to call Clear method directly without using TfsScript.AddMethod with a procedure like MemClear();?
Regards
Could anyone tell me how to call memo1.clear from my script?
I have a Memo1:TMemo and Script:TfsScript...
Script := TfsScript.Create(Self);
Script.SyntaxType := 'PascalScript';
Script.Parent := fsGlobalUnit;
Script.AddObject(Memo1.Name,Memo1);
Script.AddClass(TMemo,TMemo.ClassParent.ClassName);
I have the codeline "Memo1.Clear;" in my script.
I get "undeclared identifier" on "Clear"..
Is there any way to call Clear method directly without using TfsScript.AddMethod with a procedure like MemClear();?
procedure MemClear;
begin
Form1.Memo1.Clear;
end;
Regards
Comments
you need to memo1.memo.clear :-)