Harbour Reference Guide

 

__objHasData()

Determine whether a symbol exist in object as DATA

Syntax

__objHasData( <oObject>, <cSymbol> ) --> lExist

Arguments

<oObject> is an object to scan.

<cSymbol> is the name of the symbol to look for.

Returns

__objHasData() return .T. if the given <cSymbol> exist as DATA (instance variable) in object <oObject), .F. if it does not exist.

Description

__objHasData() is a low level class support function that let you find out if a symbol is an instance variable in a given object.
Examples
      oB := TBrowseNew( 0, 0, 24, 79 )
      ? __objHasData( oB, "nLeft" )      // this should return .T.
      ? __objHasData( oB, "lBugFree" )   // hopefully this should be .F.
      ? __objHasData( oB, "Left" )       // .F. since this is a METHOD
Status

Ready

Compliance

__objHasData() 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