Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of object Var

Description:
The method access Data extension of the Var object.
Syntax:
Extension(sId As String) As Object
Calling:
oData.Item(2).Extension(sId)
Parameters:
sId(String) Data extension identifier. The identifier is set when the data extension is being configured (see the configurator "Data extension identifier").
Return Values:
Returns a reference to Data extension object. In case of an error the Nothing value is returned (probably there is no such item with defined sId). Nothing value can be tested by VBScript Is operator.
Note:
 
Identifier #ext: References to Data extensions objects in the Var variable can also be done directly by extending the path of the Pm method using the #ext identifier. This can be used in Pm method or in PP binding in application and in panels. For example the pMe.Pm method ("/data/#vars/Temperature/#ext/al") returns the data binding with al identifier (ExtAlarmAnalog) in the "Temperature" variable (Var) in the "data" object (PmData).
Example:
Several examples of reference to the data extension with al identifier (ExtAlarmAnalog) in the "Temperature" variable (Var) in the "data" object (PmData). The recommended procedure is the first option using the #vars and #ext.
Set oExt = pMe.Pm("/data/#vars/Temperature/#ext/al")
or
Set oExt = pMe.Pm("/data/#vars/Temperature").Extension("al")
or
Set oExt = pMe.Pm("/data").Item("Temperature").Extension("al")
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice