VBScript, purpose of colon?

后端 未结 4 1396
灰色年华
灰色年华 2021-02-03 22:51

What is the purpose of the colon?

e. g.:

Dim objConn : Set objConn = OpenConnection()`

Is the colon used to combine the two statements

4条回答
  •  渐次进展
    2021-02-03 23:31

    Yes this is correct. In VB style languages, including VBScript, the colon is an end of statement token. It allows you to place several statements on the same line.

提交回复
热议问题