IVarGetArgs

 (Available in 01 TS COM - TS_COM_DelegateIDispatch)

Purpose

Get a property value

Syntax

oObject:=oDelegateIDispatch:IVarGetArgs( #Item, { 1 } )

Arguments

symIVar
SYMBOL
aArgs
ARRAY

Description

Get a property value will return any properties value and allowes to pass parameters to the property get method by passing an array with the property values. When the property get method does not need any parameters the 'IVarGet()' method should be used.

Returns

USUAL, Property value

Example

ACCESS CAItem CLASS SomeClass
RETURN SELF:IVarGetArgs( #Item, { 1 } )

Source

METHOD IVarGetArgs( symIVar AS SYMBOL, aArgs AS ARRAY ) AS USUAL PASCAL CLASS TS_DelegateIDispatch
LOCAL uRetVal AS USUAL
   TSTrace Enter symIVar
   IF SELF:FInit
      uRetVal:=SELF:_IVarGet( NULL_SYMBOL, symIVar, aArgs, SELF:_ArgsLength ; ...
     ... ( aArgs ) )
   ELSE
      TSTrace Warning "!SELF:FInit"
      uRetVal:=NIL
   END
   TSTrace Leave symIVar
RETURN uRetVal