Rem
 
表示源代码中的注释。

语法

Rem comment

' Comment

/' Multi-line
comment '/

说明

Rem开头的源代码行表示该行是注释,不会被编译。

单引号(')也可用于指示注释,并可能在源行上的其他关键字后显示。

多行注释用标记/''/标记。两个标记之间的所有文本都被认为是注释文本,没有被编译。

例子

/'这是一条多线
评论为标题
this example '/

Rem This Is a Single Line comment

'这是一个单行评论

? "你好" : Rem comment following a statement

Dim a As Integer '发表评论

? "FreeBASIC" : '也可以接受

Dim b As /' can comment in here also '/    Integer

#if 0
    This way of commenting Out code was
    required before version 0.16
#endif



与QB差别

  • Multiline评论是FreeBASIC的新特性

参考