Please Example programms on vbscript 1)writing functions
and calling functions

Answers were Sorted based on User's Feedback



Please Example programms on vbscript 1)writing functions and calling functions..

Answer / badri

'writing function


function example()

msgbox "This is example for writing funtion"
end function


'calling the above function--just we write the function name

example()

Is This Answer Correct ?    4 Yes 0 No

Please Example programms on vbscript 1)writing functions and calling functions..

Answer / cil testing team(jaipalreddy)

Public function login(x,y)
'record or write descriptive script for repeatable
operation
here xand y are arguements
End Function
'save this function in function library or copy them in
notepad or wordpad and save them with .vbs exension

While calling this function in test
call like this in test
login "Mercury","mercury"
then steps->1.File menu->settings->Resources Tab ->here
click + mark to Browse the path
->Click apply->Click Ok

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More VB Script Interview Questions

I have a webtable and many objects are embedded in side.(like buttons,checkboxes etc). How to know how many such objects are there? what is the class of that objects?

1 Answers   HP, TCS,


write a vb script to create a folder?

3 Answers  


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

0 Answers   Accenture,


Explain about filter expression?

0 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,






WHAT IS ENVIRONMENT VARIABLES?and where it is used in real time scenario?

2 Answers  


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

0 Answers  


What are the valid scopes of a variable in vbscript?

0 Answers  


what is used of Property........End Property loop ? how to write the script for it?

0 Answers  


find the length of the string without using length function?

4 Answers   CSS Corp,


How will you get the largest subscript of an array in vbscript?

0 Answers  


how to organize files in object repository of qtp

1 Answers  


Categories