What is the diff between the Create Object and Get object?
Answers were Sorted based on User's Feedback
Answer / guest
Create Object - To create an instance of an object.
Get Object ? To get the reference to an existing object.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / 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 |
What is Centralization Error Handling?
What is the difference between queryunload and unload in form?
What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.
What is the size of the variant data type?
reading lines from a file by searching a word(instr) and copying to other textfile,but its only copying only one line but there are some other lines match criteria but not copying to the files
what is the Property used to count number of items in a combobox?
Discuss the working with to-do lists.
What type of databases you can access through AD I Data Access Object?
What will happen if you issue a Resume statement after handling an error?
Difference between Class Module and Standard Module?
What is RDO?
Is it possible to Manipulate data through flexgrid? Explain.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)