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?

Rem

プログラムに解説を追加します。

Synopsis

Rem comment
or

' comment

引数

なし

コメント引数は、追加するコメントのテキストです。Rem キーワードの後のコメントの前にはスペースが必要です。

概要

構文のセクションに示されているとおり、Rem キーワードの代わりにアポストロフィ (') を使用できます。Rem キーワードが、行内で他の文の後に続く場合、コロンで文と区別する必要があります。しかしアポストロフィを使用するときは、文の後のコロンは必要ありません。

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

Dim MyStr1, MyStr2
MyStr1 = "Hello" : Rem Comment after a statement separated by a colon.
MyStr2 = "Goodbye"     ' This is also a comment; no colon is needed.
Rem Comment on a line with no code; no colon is needed.

FeedbackOpens in a new tab