Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the diff between the Create Object and Get object?

Answer Posted / abcd

1. CreateObject creates an instance of a class
2. GetObject gets the reference of an running object
to another object
3. Always use CreateObject except for Windows
Management Instrumentation (WMI) and Active Directory
Service Interfaces (ADSI)
The below script demonstrates the use of these two VBScript
functions.
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set objWorkbook = objExcel.Workbooks.Add

Set objExcel2 = GetObject(, "Excel.Application")
Set objWorkbook = objExcel2.Workbooks(1)
Set objWorksheet = objWorkbook.Worksheets(1)
objExcel2.Cells(1, 1).Value = "In god I TRUST everything
else I TEST."

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Types of LockEdits in DAO?

2080


How do I use GetPrivateProfileString to read from INI files?

1406


What is the difference between c++ and visual basic?

1280


What is the need of tabindex property is label control.

1979


OLE is used for _______

1591


How do I get the number of free bytes on a disk?

1659


what are the types of cursors in DAO?

1973


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

2052


what are the Types of DBCombo boxes?

2127


Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.

1517


Which type of object requires this object?

1990


Is there any Edit method in ADO Data Access method?

2030


How do I add a form in visual basic?

942


What is hyperlink?

2066


What is the latest version of visual basic?

917