# __ObjSetValueList()

Set object with an array of DATA 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

Status

  Ready

Compliance

  __ObjSetValueList() is a Harbour extension.

Files

  Header file is hboo.ch Library is rtl

See Also

- __ObjGetValueList()