Avaliação do Usuário

Estrela inativaEstrela inativaEstrela inativaEstrela inativaEstrela inativa
 

__objAddData()

Add a VAR to an already existing class
Syntax
__objAddData( <oObject>, <cDataName> ) --> oObject
Argument(s)
<oObject> is the object to work on.
<cDataName> is the symbol name of the new VAR to add.
Returns
__objAddData() return a reference to <oObject>.
Description
__objAddData() is a low level class support function that add a new VAR to an object. <oObject> is unchanged if a symbol with the name <cDataName> already exist in <oObject>.
Example(s)
// create a new THappy class and add a lHappy VAR
oHappy := HBClass():New( "THappy" )
__objAddData( oHappy, "lHappy" )
oHappy:lHappy := .T.
IF oHappy:lHappy
   ? "Happy, Happy, Joy, Joy !!!"
ELSE
   ? ":(..."
ENDIF
Status
Ready
Compliance
This is Harbour specific
File(s)
Library is core
See also

__objAddInline(), __objAddMethod(), __objDelData(), __objGetMsgList(), __objGetValueList(), __objHasData(), __objSetValueList()