Explain about constants in vb script?



Explain about constants in vb script?..

Answer / Shailesh Maheshwari

Constants in VBScript are named storage areas for values that do not change during the execution of a script. They are declared using the Const keyword and have a fixed value throughout the script. Once defined, a constant cannot be changed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

hey please tell me how to retriev data from excel sheet which puts the login name and password in the application? plz send me the code..please help me

6 Answers   HP,


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

1 Answers  


what is the use of QCUtil? explain with one example?

2 Answers  


Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....

1 Answers  


Explain the arrays in vb script?

1 Answers  


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

1 Answers  


How to create a cookie using vbscript?

1 Answers  


What is dictionary object in vbscript? Explain?

1 Answers  


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


accept a string & display whether a is present or not

1 Answers  


write a vb script to display the reverse of vbs

2 Answers  


How to write functions and sub in vb script?

1 Answers  


Categories