Altova XMLSpy 2023 Enterprise Edition

Method: SetVariableValue(strName as string, strValue as string)

 

Return Value

Sets the value (second parameter) of the variable submitted in the first parameter.

 

Description

SetVariableValue sets the variable's value in the scope of the context.

 

nZoom = parseInt( AuthenticView.EventContext.GetVariableValue( 'Zoom' ) );

if ( nZoom > 1 )

{

       AuthenticView.EventContext.SetVariableValue( 'Zoom', nZoom - 1 );

}

 

Errors


2201

Invalid object.


2202

No context.


2204

No such variable in scope


2205

Variable cannot be evaluated


2206

Variable returns sequence


2207

Variable read-only


2208

No modification allowed

 

 

© 2017-2023 Altova GmbH