VBScript,冒号的用途? [英] VBScript, purpose of colon?

查看:22
本文介绍了VBScript,冒号的用途?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

冒号的用途是什么?

e.:

Dim objConn : Set objConn = OpenConnection()`

是否用冒号将两个语句合并为一行?我只是想确定一下.

Is the colon used to combine the two statements into one line? I just want to be sure.

P.S.:我尝试在 Google 上搜索这个问题的答案,但没有成功.

P.S.: I tried searching the answer to this question on Google with no luck.

推荐答案

是的,两行代码完全一样;冒号只是一个语句分隔符.

Yes, the code would work exactly the same on two lines; the colon's just a statement separator.

这篇关于VBScript,冒号的用途?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆