Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

文字列の格納

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

ターミナル


USER>set x = 4

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

USER>kill

USER>write

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