Salesforce

VarInp (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

VarInp (Magic xpa 4.x)

Identifies the last variable where the insertion point has parked.

Syntax:

VarInp(generation)

Parameters:

generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.

Returns:

The number of the variable in the specified task where the insertion point has parked. Variable numbers start with A for the first variable of the root task, and are incremented sequentially for every new variable selected. Subtask variables continue the sequence of their ancestor task.

Example:

Task 1 contains two virtuals. Its subtask contains two more virtuals. The variable list for this program appears as follows:

A VAR 1
B VAR 2
----------
C VAR 3
D VAR 4

The insertion point is parked on variable B. The VarInp(1) function evaluated at the subtask level will return B.

Note:

The numbering of variables in sibling tasks starts from the last variable of their common parent. Therefore the variable identifications of both subtask's variables are the same for the first group of variables (group size is the minimum number of variables between the two tasks).

See also:

Var functions

The Online and Rich Client Samples projects (program VA07 and RVA07)

Reference
Attachment 
Attachment