VBScript GetObject 函數

GetObject 函數返回對檔中 automation 對象的引用。
語法
GetObject([pathname][,class])
參數 | 描述 |
---|---|
pathname | 可選。包含 automation 對象的檔的完整路徑和名稱。如果此參數被忽略,就必須有 class 參數。 |
class | 可選。automation 對象的類。此參數使用此語法:appname.objectype。 |

GetObject 函數返回對檔中 automation 對象的引用。
參數 | 描述 |
---|---|
pathname | 可選。包含 automation 對象的檔的完整路徑和名稱。如果此參數被忽略,就必須有 class 參數。 |
class | 可選。automation 對象的類。此參數使用此語法:appname.objectype。 |