Harbour Reference Guide

 

__objAddData()

Add a DATA to an already existing class

Syntax

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

Arguments

<oObject> is the object to work on.

<cDataName> is the symbol name of the new DATA to add.

Returns

__objAddData() return a reference to <oObject>.

Description

__objAddData() is a low level class support function that add a new DATA to an object. <oObject> is unchanged if a symbol with the name <cDataName> already exist in <oObject>.
Examples
      // create a new THappy class and add a lHappy DATA
      oHappy  := TClass():New( "THappy" )
      __objAddData( oHappy, "lHappy" )
      oHappy:lHappy := .T.
      IF oHappy:lHappy
         ? "Happy, Happy, Joy, Joy !!!"
      ELSE
         ? ":(..."
      ENDIF
Status

Ready

Compliance

__objAddData() is a Harbour extension.

Files

Library is rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/06/26