How to return a value from function...?
you should not tell msgbox, print.. etc.,
Answer Posted / rishi agrawal
Function MyFunction(Num)
InputBox("What is your name?","My Input")
'Code for return value from function
MyFunction= Num + 1
End Function
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
when we use filter funtiom invb script(QTP)
How will you convert a given number to long in vbscript?
What is vbscript procedures?
regular expression that will recognize a browser as long as its name property starts with mybrowser
Which in-built function is used to format the number in the vbscript language?
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?
Explain about filter expression?
why variable name should not exceed 255 characters?
Illustrate briefly about the different types of statement
how to set one column as primary key in QTP and fetch values accordingly
What is difference between vbscript and vba?
How to write VB script for login module?
Explain a few date functions in vbscript
How will you get the natural logarithm of the given number in vbscript?
How can you create a file object to work with the files in the vbscript language?