IBM Books

Net.Data Administration and Programming Guide for OS/400

Variable Scope

An identifier, which is a variable or a function call, becomes visible, meaning that it can be referenced when it is declared or instantiated. The region where an identifier is visible is called its scope. The five types of scope are:

When an identifier is referenced, it is replaced with the value of the identifier. If a reference to a variable has no value associated with it, or if a function call does not have a return value, the reference is replaced by an empty string.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]