__objHasData()

Template

Function

Name

__objHasData()

Category

API

Subcategory

Objects

Oneliner

Determine whether a symbol exist in object as VAR

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 VAR (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

Compliance

Harbour

Files

Library is core

Seealso

__objGetMethodList(), __objGetMsgList(), __objHasMethod()

3 responses to “__objHasData()

  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.