Salesforce

VarPic (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

VarPic (Magic xpa 4.x)

Returns a string value that represents a picture field.

Syntax:

VarPic (variable, mode)

Parameters:

variable – A value representing a variable index. Should be used with the VAR literal.

mode – the function mode

Returns:

Mode=0 returns the picture field as defined in the field definition.

Mode=1 returns the picture field as defined by the control assigned to the field. Note that only controls assigned to Class 0 forms can be referred to by function mode.

Evaluating the VarPic function on a Vector variable returns the picture of the vector’s cell.

Example:

If the picture of the BE variable is 10, then the function VarPic('BE'VAR,0) returns 10.

Note:

If the control does not have a picture property, the string returns the field definition of the picture, as if Mode=0. If the variable is not placed on the form, the string returns the field definition of the picture, as if Mode=0.

Mode values other than 0 or 1 are considered as Mode=0.

See also:

Var functions

The Online and Rich Client Samples projects (program VA05 and RVA05)

Reference
Attachment 
Attachment