.unset Macro

Permits the undefining of both local variables and volatile attributes defined through the .set_value and .set_object macros

.unset([scope.]name)

The following parameters are available:

Parameter

Description

scope

[optional] Qualifying scope.

Type: Simple-template returning an object or a collection scope

name

Local variable or volatile attribute name.

Type: Simple template

Example:

.set_value(i, 1, new)
%i?%
.unset(i)
%i?%

The second line outputs true as the variable 'i' is defined while the last one outputs false.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com