Página 1 de 1

Read control property cVarName

Publicado: Vie May 20, 2011 6:32 am
por Xailer
Good Morning
First thank's Jose for the mail and beta, seems all Ok. Now i need your's help to read the property cVarName of a control. How to do this?

Read control property cVarName

Publicado: Vie May 20, 2011 10:14 am
por ignacio
Xailer escribió el vie, 20 mayo 2011 06:32Good Morning
First thank's Jose for the mail and beta, seems all Ok. Now i need your's help to read the property cVarName of a control. How to do this?

DC,
I'm afraid that property is not available at run-time, sorry.
Regards,

Read control property cVarName

Publicado: Vie May 20, 2011 11:35 am
por Xailer
Hello Ignacio
Many thanks for answer, maybe using the Cargo property assigning the names of controls as strings?

Read control property cVarName

Publicado: Vie May 20, 2011 11:54 am
por ignacio
Xailer escribió el vie, 20 mayo 2011 11:35Hello Ignacio
Many thanks for answer, maybe using the Cargo property assigning the names of controls as strings?

That can be a possibility. I prefer this one:
CLASS TMyForm FROM TForm
DATA aMyControls INIT {::oEdit1, ::oEdit2, ::oEdit3 }
END CLASS
Then use ::aMyControls to point to the desired object.
Regards,