Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

EraseValue

変数のルート・ノードを削除します。

Synopsis

EraseValue varname

引数

EraseValue 文で使用する引数は、以下のとおりです。

varname ルート・ノードを削除する変数の名前

概要

EraseValue 文は変数のルート・ノードを削除しますが、配列要素は削除しません。

以下の例は、EraseValue 文の使用法を示しています。

array = "root node"
array("subnode") = "subnode"
array("subnode", "subnode") = "subnode, subnode"
Println Exists(array) 'returns 3; variable defined and has array elements
EraseValue array
Println Exists(array) 'returns 2

関連項目

FeedbackOpens in a new tab