GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 12 of 684    Print  
Explain the keyword createobject with an example.

  
Total Answers and Comments: 12 Last Update: November 22, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
July 28, 2005 17:02:00   #1  
Venkat Potluri        

RE: Explain the keyword createobject with an example.
Creates and returns a reference to an Automation object
syntax: CreateObject(servername.typename [ location])
Arguments
servername:Required. The name of the application providing the object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be created.

 
Is this answer useful? Yes | No
August 02, 2005 06:25:16   #2  
Prasad        

RE: Explain the keyword createobject with an example.
create object creates handle to the instance of the specified object so that we program can use the methods on the specified object. It is used for implementing Automation(as defined by microsoft).

ex: set oDesc createobject(Excel.application)
odesc.activeworksheet 1

 
Is this answer useful? Yes | No
September 30, 2005 01:38:34   #3  
suchitra        

Explain the keyword createobject with an ...
Createobject:Creates and returns a reference to an Automation object.
Example:
Dim ExcelSheet
Set ExcelSheet CreateObject( Excel.Sheet )

 
Is this answer useful? Yes | No
February 13, 2006 22:39:18   #4  
vknowth Member Since: February 2006   Contribution: 12    

RE: Explain the keyword createobject with an ...

Createobject(<ProgId -of any application already compiled with certain methods>).


 
Is this answer useful? Yes | No
October 17, 2006 14:31:30   #5  
atul        

RE: Explain the keyword createobject with an ...

Hi Venkat

If u can help me in giving ans of below questions ...

1.How can i create exe file for QTP script?

2.how can i send qtp script result in mail using QTP script method???

I m very thankful to u if u can solve my problem its very urgent...


 
Is this answer useful? Yes | No
December 20, 2006 12:59:43   #6  
Asif        

RE: sending mail through QTP

You need to create an object of type CDO or CDONTS for that purpose


 
Is this answer useful? Yes | No
April 09, 2007 02:19:17   #7  
meetsubhas Member Since: April 2007   Contribution: 3    

RE: Explain the keyword createobject with an ...

Hi atul this is subhasis

Here is ur answers of ur questions

1.u can create an excel sheet by writing this script

datatable.addsheet "sheet name"

2. u can send ur result by writing this script

datatable.exportsheet"full path with sheet name where u have to save" source id

ex:- datatable.exportsheet"d:atul.xls" 3

source id:-
1 for global sheet
2 for action1 sheet
3 for that sheet which u have to create

regards....


 
Is this answer useful? Yes | No
July 18, 2007 03:58:16   #8  
tseshasayi Member Since: July 2007   Contribution: 6    

RE: Explain the keyword createobject with an ...

Dim any file
set object name create object"object file .exetesion"
file name .run"object requiredand opath of that object"
set file name nothing


 
Is this answer useful? Yes | No
November 04, 2007 03:55:57   #9  
sudhanandareddy Member Since: April 2007   Contribution: 12    

RE: Explain the keyword createobject with an ...
Hi Guys

Createobject method use to create COM object.


Generally we use this method for reading writing data from notepad file or .xls files.

if any queries:

nanda.dreddy@gmail.com

 
Is this answer useful? Yes | No
May 22, 2008 11:47:00   #10  
manishgi Member Since: March 2008   Contribution: 8    

RE: Explain the keyword createobject with an example.
syntex: createObject(serverName.typeName[ location])
exam: set oOBJ createObject("excel.application")

 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape