__objGetValueList()

Template

Function

Name

__objGetValueList()

Category

API

Subcategory

Objects

Oneliner

Return an array of VAR names and values for a given object

Syntax

      __objGetValueList( <oObject>,  [<aExcept>] ) --> aData

Arguments

<oObject> is an object to scan.

<aExcept> is an optional array with VAR names you want to exclude from the scan.

Returns

__objGetValueList() return a 2D array that contain pairs of a VAR symbol name and the value of VAR. __objGetValueList() would return an empty array {} if the given object does not contain the requested information.

Description

__objGetValueList() is a low level class support function that return an array with VAR names and value, each array element is a pair of: aData[ i, HB_OO_DATA_SYMBOL ] contain the symbol name aData[ i, HB_OO_DATA_VALUE ] contain the value of DATA

Examples

      // show information about TBrowse class
      oB := TBrowseNew( 0,  0,  24,  79 )
      aData := __objGetValueList( oB )
      FOR i := 1 TO Len( aData )
         ? "VAR name:",  aData[ i,  HB_OO_DATA_SYMBOL ],  ;
            "   value=",  aData[ i,  HB_OO_DATA_VALUE  ]
      NEXT

Compliance

Harbour

Files

Header file is hboo.ch
Library is core

Seealso

__objGetMethodList(), __objGetMsgList(), __objHasData(), __objHasMethod(), __objSetValueList()

3 responses to “__objGetValueList()

  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.