You are here: Function Reference > Alphabetical Listing > G > GVM

GVM

Use this function to retrieve the contents of a GVM variable.

Syntax

GVM (Name, Instance)

Parameter

Description

Name

Enter the name of the GVM variable.

Instance

Enter the instance number of the GVM variable. The default is one (1).

The system returns the content of the variable if it exists or a blank string if it does not.

Example

Here is an example:

Function

Result

Explanation

If (HaveGVM(‘Company’))

AddComment(GVM(‘Company’))

End

String or a blank string

Return the content of the GVM variable "company" if it exist.

Note If the GVM variable does not exist, you will receive the error message: DM12041.

See also