__objSetValueList()

Template

Function

Name

__objSetValueList()

Category

API

Subcategory

Objects

Oneliner

Set object with an array of VAR names and values

Syntax

      __objSetValueList( <oObject>,  <aData> ) --> oObject

Arguments

<oObject> is an object to set.

<aData> is a 2D array with a pair of instance variables and values for setting those variable.

Returns

__objSetValueList() return a reference to <oObject>.

Description

__objSetValueList() is a low level class support function that let you set a group of instance variables with values. each array element in <aData> is a pair of:

aData[ i, HB_OO_DATA_SYMBOL ] which contain the variable name to set
aData[ i, HB_OO_DATA_VALUE ] contain the new variable value.

Examples

      // set some TBrowse instance variable
      oB := TBrowse():New()
      aData := Array( 4,  2 )
      aData[ 1,  HB_OO_DATA_SYMBOL ] = "nTop"
      aData[ 1,  HB_OO_DATA_VALUE  ] = 1
      aData[ 2,  HB_OO_DATA_SYMBOL ] = "nLeft"
      aData[ 2,  HB_OO_DATA_VALUE  ] = 10
      aData[ 3,  HB_OO_DATA_SYMBOL ] = "nBottom"
      aData[ 3,  HB_OO_DATA_VALUE  ] = 20
      aData[ 4,  HB_OO_DATA_SYMBOL ] = "nRight"
      aData[ 4,  HB_OO_DATA_VALUE  ] = 70
      __objSetValueList( oB,  aData )
      ? oB:nTop      // 1
      ? oB:nLeft     // 10
      ? oB:nBottom   // 20
      ? oB:nRight    // 70

Compliance

Harbour

Files

Header file is hboo.ch
Library is core

Seealso

__objGetValueList()

4 responses to “__objSetValueList()

  1. Pingback: Harbour Internal Functions | Viva Clipper !

  2. Pingback: Harbour Internal Functions | Viva Clipper !

  3. Pingback: Harbour Objects Functions | Viva Clipper !

  4. 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.