Página 1 de 1
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 7:23 am
por david fung
From SelFromTabala.prg (DBFData6 app), it use "Property" and "Data"
statement as "parameters". It seems they receive value from the caller
(parent object). I tried the same idea but failed.
Attached a sample, please inform what went wrong ? Are DATA & PROPERTY
use for parameter passing ?
Can you clarify the purpose of the captioned keywords or where I can get
more information. I'll need to get the concept right.
Thanks.
David
--
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 9:24 am
por ignacio
David,
Sample fixed.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <
davfung@yahoo.com> escribió en el mensaje
news:[email=
453ef4d8@news.xailer.com...]
453ef4d8@news.xailer.com...[/email]
> From SelFromTabala.prg (DBFData6 app), it use "Property" and "Data"
> statement as "parameters". It seems they receive value from the caller
> (parent object). I tried the same idea but failed.
>
> Attached a sample, please inform what went wrong ? Are DATA & PROPERTY
> use for parameter passing ?
>
> Can you clarify the purpose of the captioned keywords or where I can get
> more information. I'll need to get the concept right.
>
> Thanks.
> David
>
>
Attached files TLab.zip (2.5 KB)Â
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 9:24 am
por NoName
David,
Sample fixed.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <
davfung@yahoo.com> escribió en el mensaje
news:[email=
453ef4d8@news.xailer.com...]
453ef4d8@news.xailer.com...[/email]
> From SelFromTabala.prg (DBFData6 app), it use "Property" and "Data"
> statement as "parameters". It seems they receive value from the caller
> (parent object). I tried the same idea but failed.
>
> Attached a sample, please inform what went wrong ? Are DATA & PROPERTY
> use for parameter passing ?
>
> Can you clarify the purpose of the captioned keywords or where I can get
> more information. I'll need to get the concept right.
>
> Thanks.
> David
>
>
Attached files TLab.zip (2.5 KB)Â
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 10:28 am
por david fung
Thanks.
Q1. What is the different
Tform1:New() and Tform1:New( Self )
Q2. Why in my routine Parm1 & Parm2 unable to receive value from caller ?
Q3. must hb_qwith() always associate with an object, hence can only be
use inside a 'WITH OBJECT' statement ?
Regard,
David
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 10:28 am
por david fung
Thanks.
Q1. What is the different
Tform1:New() and Tform1:New( Self )
Q2. Why in my routine Parm1 & Parm2 unable to receive value from caller ?
Q3. must hb_qwith() always associate with an object, hence can only be
use inside a 'WITH OBJECT' statement ?
Regard,
David
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 10:47 am
por ignacio
David,
> Q1. What is the different
>
> Tform1:New() and Tform1:New( Self )
The Self parameter, in this case the Form. Check the documentation of
TComponent:New( oParent )
> Q2. Why in my routine Parm1 & Parm2 unable to receive value from caller ?
Sure they can. But the assignment to the edit controls on event OnInitialize
is RUNNED BEFORE the assignment of the Parm? members.
> Q3. must hb_qwith() always associate with an object, hence can only be use
> inside a 'WITH OBJECT' statement ?
Yes. That is a xHarbour issue BTW.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <
davfung@yahoo.com> escribió en el mensaje
news:[email=
453f201b@news.xailer.com...]
453f201b@news.xailer.com...[/email]
> Thanks.
>
> Q1. What is the different
>
> Tform1:New() and Tform1:New( Self )
>
> Q2. Why in my routine Parm1 & Parm2 unable to receive value from caller ?
>
> Q3. must hb_qwith() always associate with an object, hence can only be use
> inside a 'WITH OBJECT' statement ?
>
>
> Regard,
> David
>
Usage of PROPERTY DATA in CLASS definition
Publicado: Mié Oct 25, 2006 10:47 am
por NoName
David,
> Q1. What is the different
>
> Tform1:New() and Tform1:New( Self )
The Self parameter, in this case the Form. Check the documentation of
TComponent:New( oParent )
> Q2. Why in my routine Parm1 & Parm2 unable to receive value from caller ?
Sure they can. But the assignment to the edit controls on event OnInitialize
is RUNNED BEFORE the assignment of the Parm? members.
> Q3. must hb_qwith() always associate with an object, hence can only be use
> inside a 'WITH OBJECT' statement ?
Yes. That is a xHarbour issue BTW.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <
davfung@yahoo.com> escribió en el mensaje
news:[email=
453f201b@news.xailer.com...]
453f201b@news.xailer.com...[/email]
> Thanks.
>
> Q1. What is the different
>
> Tform1:New() and Tform1:New( Self )
>
> Q2. Why in my routine Parm1 & Parm2 unable to receive value from caller ?
>
> Q3. must hb_qwith() always associate with an object, hence can only be use
> inside a 'WITH OBJECT' statement ?
>
>
> Regard,
> David
>