检查变量或者表达式是否为对象类型.
IsObj ( 变量 )
变量 | 要检查的变量/表达式. |
成功: | 返回 1, 表达式是对象变量. |
失败: | 返回 0, 表达式不是对象变量. |
Local $oShell
= ObjCreate("shell.application")
If Not IsObj($oShell) Then
MsgBox(0, "错误","变量
$oShell 不是对象类型.")
else
Msgbox(0,"提示","成功地创造对象变量 $oShell.")
EndIf
provider with jb51.net (unicode) |