Micro Focus QTP (UFT) Forums
What is the exact meaning of CreateObject() - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: What is the exact meaning of CreateObject() (/Thread-What-is-the-exact-meaning-of-CreateObject)



What is the exact meaning of CreateObject() - Rajashekar Gouda - 01-16-2008

Hi I am begginer to QTP and using since 8 months,I am working on Data Driven Framwork. Because of that i have not come across using the CreateObject()...i have seen in many framework they are using the that common.d

Can i know what exeactly the meaning the CreateObject and what is the use of that commond..

And my second question is some times we are going to as
Code:
"Set App = CreateObject("QuickTest.Application")"
here since we know the mane of QTP is "QuickTest" so we used as "QuickTest.Application")".

But there is new application like xls or outlook or any pdf file if i want to createObject for that application, from where i have to get the application name.


RE: What is the exact meaning of CreateObject() - Ankur - 01-17-2008

This is part of the COM which enables software components to communicate with each other.

You can read more about createobject here

Additional Read

Regarding your second query, its the name of the application supplying the object.
For ex: Work.Application for MS word document, Excel.Workbook for excel workbook or Excel.Sheet for MS Excel spreadsheet

If you use office 2000 you can refer \Program Files\microsoft office\Office\1033\VBAXL9.CHM for more information on MS Excel Automation Model