Basic 语法公式由一系列语句组成。每个语句均必须用新行或冒号与前面的语句分开。通常情况下,每个语句占一行,但可以用行继续符(空格后跟一个下划线)在下一行继续写语句。
示例
'Declare a variable x to hold a number Dim x As Number 'Assign the value of 30 to x x = 10 + 10 + 10 'This also assigns the value of 30 to x x = 10 + _ 10 + 10 'Line continuation characters _ can also be used in comments Dim y as String 'Three statements separated by two colons y = "Hello" : x = 30 : formula = True