VBScript UCase 函數(shù)
定義和用法
CreateObject 函數(shù)可創(chuàng)建一個(gè)指定類型的對象。
語法
CreateObject(servername.typename[,location])
| 參數(shù) | 描述 |
|---|---|
| servername | 必需的。提供此對象的應(yīng)用程序名稱。 |
| typename | 必需的。對象的類型或類(type/class)。 |
| location | 可選的。在何處創(chuàng)建對象。 |
實(shí)例
例子 1
dim myexcel
Set myexcel=CreateObject("Excel.Sheet")
myexcel.Application.Visible=True
...code...
myexcel.Application.Quit
Set myexcel=Nothing