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?

文字列の格納

ObjectScript では、通常の変数を使用するのと同様に、簡単にデータをディスクに格納できます。この場合、変数名の先頭に ^ (キャレット) 文字を使用します。以下の例では、通常の変数 x とは異なる変数 ^x で文字列を保存します。通常の変数のすべてで Kill を実行しても、^x は残ります。詳細は後で学習します。

SAMPLES>set x = 4

SAMPLES>set ^x = "Store this on disk"

SAMPLES>kill

SAMPLES>write

SAMPLES>write ^x
Store this on disk
SAMPLES>
FeedbackOpens in a new tab