VBScript, purpose of colon?

后端 未结 4 1387
灰色年华
灰色年华 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:52

    What you have stated is correct. The purpose of the colon is to combine 2 otherwise separate lines into a single line. It works on most statements, but not all.

提交回复
热议问题