ISSET()

From Lianjapedia
Revision as of 08:26, 4 December 2017 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to check whether a variable exists

Syntax

ISSET(<variable name>)

See Also

DECLARE, DIMENSION, LOCAL, PARAMETERS, PRIVATE, PUBLIC, RELEASE, SET LOCAL, STORE, TYPE(), UNSET(), VARTYPE()

Description

The ISSET() function can be used to check whether a variable exists. ISSET() will return .T. (true) if the variable named <variable name> exists and .F. (false) if it does not exist. Variables can be formally declared (PUBLIC, PRIVATE etc.) or automatically created when they are assigned a value.

Example

if isset(m_var)
  // m_var exists
endif