Please Example programms on vbscript 1)writing functions
and calling functions
Answers were Sorted based on User's Feedback
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 |
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 |
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
write a vb script to add two 2*2 matrix
What is the output of a + b in vbscript if a = 5 and b = 10?
1)How to test whether items in a weblist are in alphabetical order or not?
how to validate the text in a web table
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
What is a class in CSS?
Illustrate briefly about the different types of statement
int a=4857 i need output as 7584.without using any inbuild function?
What is the difference between function and procedure?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Which constant is used for print and display functions and works as same as pressing enter key?