Skip to content

新注释语法

块注释和行内注释

你现在可以使用 /* */ 语法。例如,Sub Foo(bar As Long /* out */) 或:

c
/*
Everything here is
a comment until:
*/

示例

vb
' Single-line comment using the apostrophe

Sub Greet(ByVal name As String /* in */)
    Debug.Print "Hello, " & name  ' inline comment
    /*
    This block comment
    spans multiple lines.
    */
End Sub

twinBASIC及其LOGO版权为作者"韦恩"所有