__objDelData()

Template

Function

Name

__objDelData()

Category

API

Subcategory

Objects

Oneliner

Delete a VAR (instance variable) from class

Syntax

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

Arguments

<oObject> is the object to work on.

<cDataName> is the symbol name of VAR 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 VAR 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 VAR
      oHappy  := HBClass():New( "THappy" )
      __objAddData( oHappy,  "lHappy" )
      ? __objHasData( oHappy,  "lHappy" )    // .T.
      // remove lHappy VAR
      __objDelData( oHappy,  "lHappy" )
      ? __objHasData( oHappy,  "lHappy" )    // .F.

Compliance

Harbour

Files

Library is core

Seealso

__objAddData(), __objGetMsgList(), __objGetValueList(), __objHasData(), __objSetValueList()

3 responses to “__objDelData()

  1. Pingback: Harbour Internal Functions | Viva Clipper !

  2. Pingback: Harbour Objects Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.