# __objDelData()

Delete a DATA (instance variable) from class

Syntax

  __objDelMethod( <oObject>, <cDataName> ) --> oObject

Arguments

  <oObject> is the object to work on.
  <cDataName> is the symbol name of DATA to be deleted (removed) from the object.

Returns

  __objDelData() return a reference to <oObject>.

Description

  __objDelData() is a low level class support function that delete (remove) a DATA from an object. <oObject> is unchanged if a symbol with the name <cDataName> does not exist in <oObject>.

Examples

          // create a new THappy class and add a lHappy DATA
          oHappy  := HBClass():New( "THappy" )
          __objAddData( oHappy, "lHappy" )
          ? __objHasData( oHappy, "lHappy" )    // .T.
          // remove lHappy DATA
          __objDelData( oHappy, "lHappy" )
          ? __objHasData( oHappy, "lHappy" )    // .F.

Status

  Ready

Compliance

  __objDelData() is a Harbour extension.

Files

  Library is rtl

See Also

- __objAddData()
- __objGetMsgList()
- __ObjGetValueList()
- __objHasData()
- __ObjSetValueList()