GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 669 of 684    Print  
DIM and SET
What is the difference between DIM and SET? When to use DIM and when to use SET.


  
Total Answers and Comments: 4 Last Update: February 20, 2009     Asked by: asad.test 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sanathsharma
 
 Dim is genarlly to initiate a variable and SET is used to assign a value to the initiated variable

Above answer was rated as good by the following members:
Sreelekha_369
September 16, 2008 08:05:20   #1  
saurabhmishra9999979392 Member Since: September 2008   Contribution: 4    

RE: DIM and SET
Both the terms are mainly associated with the VB script where Dim defines something and set explains what is that exactly.

for example:

Dim Myresponse
set Myresponse "Create object".

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 4Overall Rating: -4    
September 19, 2008 10:14:01   #2  
sanathsharma Member Since: July 2007   Contribution: 3    

RE: DIM and SET
Dim is genarlly to initiate a variable and SET is used to assign a value to the initiated variable
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 1Overall Rating: -N/A-    
September 29, 2008 11:46:41   #3  
udawant.s Member Since: September 2008   Contribution: 1    

RE: DIM and SET
Dim can be used to store a value in a variable.
For example: Dim a
a 10

Set can be used to store a object or child object from AUT
eg. set a Browser(" ").Page(" ").childobject(obj)
obj is already described through descriptive programming & by using above script we can store child objects in a web page like webbutton webradio button web list link etc.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 20, 2009 01:47:03   #4  
amitmba32 Member Since: May 2008   Contribution: 4    

RE: DIM and SET
Dim is used to store scalar variables.
ex Dim a
a 10
Set is used to store complete hierarchy of Object
browser( ).page( ).childobject( ).

 
Is this answer useful? Yes | No


 
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