Página 1 de 1

READ WRITE

Publicado: Jue Nov 30, 2006 10:19 pm
por Nick Hilder
Hi
Might not be the place to ask...
Can I do something like this
PROPERTY FName INIT "" READ Get WRITE Set
PROPERTY LName INIT "" READ Get WRITE Set
PROPERTY Age INIT 0 READ Get WRITE Set
Get(PropertyName, xValue)
Set(PropertyName, xValue)
I guess what I'm asking, is there any way to know what property called the
Get/Set method.
I can then do a case inside GET/SET to handle any validation required, or
just fall though.
Thanks
Nick

READ WRITE

Publicado: Vie Dic 01, 2006 9:45 am
por ignacio
Nick,
> I guess what I'm asking, is there any way to know what property called the
> Get/Set method.
The Get/Set methods are standard methods that you may use to read or assign
property values, but they can be used anywhere.
BTW you may use procname(0) inside the READ or WRITE methods to know exactly
who call the property.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Nick Hilder" <nick_Nospam#$%@capsol.com%NOSPAM%.au> escribió en el mensaje
news:[email=456f4acc@news.xailer.com...]456f4acc@news.xailer.com...[/email]
> Hi
>
> Might not be the place to ask...
>
> Can I do something like this
>
> PROPERTY FName INIT "" READ Get WRITE Set
> PROPERTY LName INIT "" READ Get WRITE Set
> PROPERTY Age INIT 0 READ Get WRITE Set
>
>
> Get(PropertyName, xValue)
>
> Set(PropertyName, xValue)
>
> I guess what I'm asking, is there any way to know what property called the
> Get/Set method.
>
> I can then do a case inside GET/SET to handle any validation required, or
> just fall though.
>
> Thanks
>
> Nick
>
>