Previous Topic

Next Topic

Inhoudsopgave

Book Index

IsahVarList

Property Property VarName: String ] (R/W)

Description

Enables you to access the list of global (=application) variables.

Remarks

The Vars property allows you, for instance, to send values from one script to another script. Since Vars is the default property, you may omit the word 'Vars', also see the example below.

Parameters

Result

An object with data concerning the global variable.

Note: The IsahUserCode variable is entered in all scripts. This variable contains the name of the user logged in to the application. This value is required to start the process procedures.

Properties, Procedures and Functions

The IsahVarList object keeps track of all global variables.

Property Property Items[ Index: Integer]: Variant (R/W)

Property Property Count: Integer (R)

Function Procedure Clear( Index: Integer )

Function Procedure Clear( Value: String )

Function Function IndexOf( Value: String ): Integer

Example

Sub Main()

' Initiate the variables

Dim Color

' Display question and save the answer in Color

Color = InputBox("Specify a color","Question 1")

' Save the color to be used later for operations

Application.Vars("Color") = Color

' Show the contents of item 1

msgbox application.vars.items (1)

' Since vars is the default property, the following is also possible

Application("Color") = Color

End Sub

Sub Main()

' Initiate the variables

Dim Color

' Retrieve the stored color

Color = Application.Vars("Color") = Color

' Since vars is the default property, the following is also possible

Color = Application("Color")

' Save the color to 'ProdBOOPartDescription'

Record.FieldValues("ProdBOOPartDescription") = Color

End Sub