vbs entry

dim-defined variable names

dim  name
-------------
dim name,age
name = "worf"
age = 20

msgbox output

msgbox name&age

-------------
dim name,age
name = "zhangsan"
age = 20
msgbox name&age

 & Joiner

MsgBox   " output name: " & name & " Age of output " & Age

inputbox input box

Dim A 
A = InputBox ( " Please enter: " )

,, title

MsgBox  " Welcome to VBS calculator " ,, " Welcome "

Analyzing conditions if .... then ..

c=inputbox("请输入:")
if c="+" then m=a+b
if c="-" then m=a-b
if c="/" then m=a/b
if c="*" then m=a*b

 

Guess you like

Origin www.cnblogs.com/baizhuang/p/11348062.html