GetVar()
Description
This method can only be implemented in all editions of SiMX TextConverter except in TextConverter Standard Edition. Call this function to set the variable both in and out of TextConverter in automation (API).
The GetVar() function is used to establish access to the user variables inside your TextConverter project. So, if you created a Var1 variable in the TextConverter project here is how you can access it from an external programming environment.
Syntax
Function GetVar()
Parameters
none
Return value
variable
Example
‘--- declaring local variables ---
Dim cnv, var1, xxx
‘--- creating TextConverter object ---
Set cnv = CreateObject( "ConverterX.ConverterX.1" )
‘--- creating variable connected to TextConverter ---
Set var1 = cnv.GetVar( "Var1" )
‘ --- using var1 for reading and writing ---
xxx = var1.value ‘writing to the variable
var1.value = “XXX” ‘reading the constant