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.

READ WRITE

Xailer English public forum
Responder
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

READ WRITE

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9441
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

READ WRITE

Mensaje 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
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder