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?

Copy

配列要素をソースからターゲットにコピーします。

Synopsis

Copy target=source

引数

Copy 文には、以下のパラメータがあります。

source コピー元の変数の名前。通常は配列。
target ソースの内容のコピー先の変数名。

概要

ターゲット変数のノードはすべてコピー操作の前に削除されます。CopyMerge で唯一異なる点は、ターゲット・ノードの削除です。

Erase source, target

target(1) = "node 1"
target(1,1) = "node 1,1"
target(2) = "node 2"
target(3,1) = "node 3,1"
source(3,2) = "node 3,2"

Copy target = source

Println Exists(target(3,1)) 'not defined anymore, returns 0
Println Exists(target(3,2)) 'does now exist, returns 1
Println Exists(target(1))   'not defined and has no subnodes, returns 0

関連項目

FeedbackOpens in a new tab