[Lazarus] PascalScript and Self instance
Martin
lazarus at mfriebe.de
Mon Sep 16 20:00:43 CEST 2013
On 16/09/2013 18:58, silvioprog wrote:
> 2013/9/16 Martin <lazarus at mfriebe.de <mailto:lazarus at mfriebe.de>>
>
> What do you mean "passing the self const as default"?
>
>
> I'm trying it:
>
> TMyClass = class
> private
> FData: string;
> public
> procedure WriteLn(const S: string);
>
> ...
> var
> obj: TMyClass;
>
> ps.SetVarToInstance('SELF', obj);
>
> So when I call "WriteLn", it must call WriteLn of my "obj" instance.
>
> Please see the full code in attached in previous e-mail.
>
yes found it.
Never used SetVarToInstance, dont know if it does what you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130916/8383778b/attachment-0003.html>
More information about the Lazarus
mailing list