[Pas2js] TJSIDBObjectStore.add() not working with a recordtype variable.....
Pedro Pablo Oviedo Vera
verakuba13 at gmail.com
Wed Oct 2 20:36:55 CEST 2019
just this??!!!!....ok let's go!!
Thanks a lot!!!!
El mié., 2 oct. 2019 a las 12:46, Michael Van Canneyt (<
michael at freepascal.org>) escribió:
>
>
> On Wed, 2 Oct 2019, Pedro Pablo Oviedo Vera wrote:
>
> > Yes, you all right!...I am try it ....my problem :
> > ...for example...I declare >>>>>
> > type
> > gsolicitud : TJSIDBOpenDBRequest;
> > gMyDB : TIDBDatabase;
> >
> > function fOpenDB(aEvent: TEventlistenerEvent): Boolean;
> > begin
> > (* inside event handler I need get params retorned from request *)
> > gMyDB := aEvent.target; <==== but this does not works for me
>
> You must typecast this, this is always so.
>
> Just like in Delphi/FPC the Sender :TObject is used as a generic sender,
> event.target is also very generic. So you must always do
>
> gMyDB := TIDBDatabase(aEvent.target);
>
> That is normal.
>
> Michael.
> _______________________________________________
> Pas2js maillist - Pas2js at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20191002/60aca637/attachment.html>
More information about the Pas2js
mailing list