Hi
My Main form as a component ADO.
When i create a New form i want to pass oAdo to the form
In Event (On create) i insert
METHOD FormCreate( oSender ) CLASS frm_cria_usr
oSender:oAdo := ::oParent:oAdo
RETURN Nil
It Returns
Message not found: FRM_CRIA_USR:_OADO
It's Not possible to send component ADO betwen forms ?
Best regards
Pedro
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Passing oADO
-
- Mensajes: 91
- Registrado: Mié May 30, 2007 5:25 pm
Passing oADO
Pedro,
> My Main form as a component ADO.
>
> When i create a New form i want to pass oAdo to the form
>
> In Event (On create) i insert
>
> METHOD FormCreate( oSender ) CLASS frm_cria_usr
> oSender:oAdo := ::oParent:oAdo
> RETURN Nil
>
> It Returns
> Message not found: FRM_CRIA_USR:_OADO
>
> It's Not possible to send component ADO betwen forms ?
Just declare oAdo as a property, data or component in the class:
CLASS frm_cria_usr FROM TForm
...
COMPONENT oAdo
...
ENDCLASS
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> My Main form as a component ADO.
>
> When i create a New form i want to pass oAdo to the form
>
> In Event (On create) i insert
>
> METHOD FormCreate( oSender ) CLASS frm_cria_usr
> oSender:oAdo := ::oParent:oAdo
> RETURN Nil
>
> It Returns
> Message not found: FRM_CRIA_USR:_OADO
>
> It's Not possible to send component ADO betwen forms ?
Just declare oAdo as a property, data or component in the class:
CLASS frm_cria_usr FROM TForm
...
COMPONENT oAdo
...
ENDCLASS
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
-
- Mensajes: 91
- Registrado: Mié May 30, 2007 5:25 pm
Passing oADO
Hi Jose
Works great .
I could's imaginate that was the problem -)
Regards
Pedro
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:466ef1d6$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Pedro,
>
>> My Main form as a component ADO.
>>
>> When i create a New form i want to pass oAdo to the form
>>
>> In Event (On create) i insert
>>
>> METHOD FormCreate( oSender ) CLASS frm_cria_usr
>> oSender:oAdo := ::oParent:oAdo
>> RETURN Nil
>>
>> It Returns
>> Message not found: FRM_CRIA_USR:_OADO
>>
>> It's Not possible to send component ADO betwen forms ?
>
> Just declare oAdo as a property, data or component in the class:
>
> CLASS frm_cria_usr FROM TForm
> ...
> COMPONENT oAdo
> ...
> ENDCLASS
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
Works great .
I could's imaginate that was the problem -)
Regards
Pedro
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:466ef1d6$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Pedro,
>
>> My Main form as a component ADO.
>>
>> When i create a New form i want to pass oAdo to the form
>>
>> In Event (On create) i insert
>>
>> METHOD FormCreate( oSender ) CLASS frm_cria_usr
>> oSender:oAdo := ::oParent:oAdo
>> RETURN Nil
>>
>> It Returns
>> Message not found: FRM_CRIA_USR:_OADO
>>
>> It's Not possible to send component ADO betwen forms ?
>
> Just declare oAdo as a property, data or component in the class:
>
> CLASS frm_cria_usr FROM TForm
> ...
> COMPONENT oAdo
> ...
> ENDCLASS
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>