<div dir="ltr"><div>just this??!!!!....ok let's go!!</div><div><br></div><div>Thanks a lot!!!!<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 2 oct. 2019 a las 12:46, Michael Van Canneyt (<<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Wed, 2 Oct 2019, Pedro Pablo Oviedo Vera wrote:<br>
<br>
> Yes, you all right!...I am try it ....my problem :<br>
> ...for example...I declare >>>>><br>
> type<br>
> gsolicitud : TJSIDBOpenDBRequest;<br>
> gMyDB : TIDBDatabase;<br>
><br>
> function fOpenDB(aEvent: TEventlistenerEvent): Boolean;<br>
> begin<br>
> (* inside event handler I need get params retorned from request *)<br>
> gMyDB := aEvent.target; <==== but this does not works for me<br>
<br>
You must typecast this, this is always so.<br>
<br>
Just like in Delphi/FPC the Sender :TObject is used as a generic sender,<br>
event.target is also very generic. So you must always do<br>
<br>
gMyDB := TIDBDatabase(aEvent.target);<br>
<br>
That is normal.<br>
<br>
Michael.<br>
_______________________________________________<br>
Pas2js maillist - <a href="mailto:Pas2js@lists.freepascal.org" target="_blank">Pas2js@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><pre style="color:rgb(0,0,0);font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">MSc. Ing. Pedro Pablo Oviedo Vera
Dirección Técnica y Desarrollo
Empresa de Proyectos e Ingeniería del
Ministerio de la Agricultura.ENPA.
Boyeros y Conill, Piso 10 Edif MINAG
Telef. 884 7197
SIP:23000116</pre></div></div>