You are here: Function Reference > Alphabetical Listing > H > HaveGVM

HaveGVM

Use this function to determine if a GVM variable exists.

Syntax

HaveGVM (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 one (1) if it locates the GVM variable or a zero (0) if it cannot find the variable.

Example

Here is an example:

Function

Result

Explanation

If (HaveGVM(‘Company’))

AddComment( GVM(‘Company’))

End

1 or 0

If a GVM variable "company" exist; then add the content of the GVM variable to the print stream.

See also