How to call Memo.clear

edited 2:47PM in FastScript
Hi all!
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

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.