国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
VBscript語法
Variant ---VBScript中唯一的數(shù)據(jù)類型,VB并不支持用戶定義類型User Defined Type,UDT)
1 子類型的檢查和類型轉(zhuǎn)換
TypeName()  返回文本形式的類型
VarType() 返回數(shù)字形式的子類型
匈牙利表示法
var  --- Variant
str  --- 字符創(chuàng) String
int ----整形 Integer
lng ----長整形 long
byt ——單字節(jié) byte
sng——單精度浮點數(shù)Single
dbl——雙精度浮點數(shù)double
cur——貨幣(Currency)
obj——對象(Object)
Bool——布爾
Is函數(shù): IsNumber, IsDate, IsError
Empty:未初始化, IsEmtpy(),  if( varTest = Empty) then
NULL:空值, IsNull()
避免因NULL之產(chǎn)生問題: strCustomerName=""& rsCustomers.Fields("Name").Value
Dim objFSO
set objFSO = WScript.CreateObject(“Scripting.FileSystemObject“)
set objFSO = nothing
數(shù)組:
Dim astrPhonelist()
Redim Preserve AstrPhonelist(2,1)
UBound(astrPhonelist,2) 行數(shù)  UBound(astrPhonelist,1) 列數(shù)
Erase astrPhoneList 清除數(shù)組對于靜態(tài)數(shù)組, 刪除數(shù)組對于動態(tài)數(shù)組。
過程及函數(shù)
調(diào)用過程的合法方式
調(diào)用過程的非法方式
Comments
GreetUser “Bill”
GreetUser(“Bill”)
不可以加括號
Call GreetUser(“Bill”)
Call GreetUser “Bill”
加Call一定要加括號
調(diào)用函數(shù)的合法方式
調(diào)用函數(shù)的不合法方式
lngSum = AddNumbers(10,20)
lngSum = AddNumbers 10,20
要獲得函數(shù)的返回值,就不能用Call關(guān)鍵字,并且一定要將參數(shù)放在圓括號中。沒有圓括號是非法的。
Call AddNumbers(10,20)
lngSum = Call AddNumbers(10,20)
加Call一定要加括號
AddNumbers 10, 20
AddNumbers(10,20)
可以同時忽略call和括號。
2.  QTP
WScript properties and methods
QuickTest
Not supported
WScript.Application property
Not supported
WScript.Arguments
Not supported
Use instead the Parameter or TestArgs object
WScript.FullName property
Not supported
WScrip.Name property
Not supported
use instead ScriptEngine Function
WScript.Path property
Not supported
Add following code to an associated external vbs
Arr = Split(Environment(”TestDir”),”\”)
Redim Preserve arr(UBound(arr)-1)
Environment(“TestPath”)= Join(arr,”\”)
WScript.ScriptFullName property
Not supported
use instead environment(“TestDir”)
WScript.ScriptName property
Not supported
environment(“TestCase”)
WScript.StdErr, StdIn, Std Out properties
Not supported
WScript.Version property
Not supported
user instead a concatenation of ScriptEngineMajorVersion Function, ScriptEngineMinorVersion function.
WScript.CreateObject method
CreateObject function
WScript.ConnectObject method
Use instead ConnectObject function.
WScript.eaho
msgbox
WScript.GetObject
Getobject
WScript.ShowUsage
WScript.Sleep
wait
WshArguments collection object
WshName
WshUnName
本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
QTP:VBS基礎教程
VBScript常用語法手冊學習
Excel-VBA查找文件并備份
不錯的remote script文檔(轉(zhuǎn)載自微軟)(三)
UC頭條:C語言:內(nèi)存初始化函數(shù)memset()
7.3 函數(shù)和數(shù)組
更多類似文章 >>
生活服務
分享 收藏 導長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服