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

write a vb script to display calculator using case statement?

1 Answers  


How will you get a random number between 0 and 1 in vbscript?

0 Answers  


How to open a file. What is the perpose of true and false mode there?

0 Answers  


am giving to one number u can set into that in date format.u can use any methods

1 Answers   HP,


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

0 Answers  






Explain the string concatenation function in vbscript?

0 Answers  


What are the differences between Visual Basic, VBA and VBScript? When would it be appropriate to use one as opposed to another?

1 Answers   Infosys,


Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript

1 Answers  


how to validate the text in a web table

2 Answers   Mphasis,


Can automation testing find ssame no. of bugs what we can find by manual testing?

0 Answers  


Explain the tristate constants in vbscript?

0 Answers  


Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.

2 Answers   CSS Corp,


Categories