DIM and SET

What is the difference between DIM and SET? When to use DIM and when to use SET.

Questions by asad.test

Showing Answers 1 - 24 of 24 Answers

udawant.s

  • Sep 29th, 2008
 

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.

viplav15

  • Jan 19th, 2011
 

Dim is an identifier declaration statement.
SET is a Object Instantaiating statement.

  Was this answer useful?  Yes

Neha

  • Dec 7th, 2016
 

Dim is used to introduce a variable and Set is used to assign value to that initiated variable.

regards,
Neha

  Was this answer useful?  Yes

Sagar

  • Jul 25th, 2017
 

Dim keyword is used to declare a variable, where as Set keyword used to declare object

  Was this answer useful?  Yes

manoj kumar

  • Sep 23rd, 2019
 

Dim is used to declare the variable and Set is used to assign the value to variable.
Eg: Dim temp
Set temp=20

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.