How to return a value from function...?
you should not tell msgbox, print.. etc.,
Answer Posted / selva
yes function can return multiple vales.
Public Function fn()
Dim arr(1)
arr(0)=23
arr(1)=67
fn=arr
End Function
a=fn
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the constants in vbscript?
How do i automate a website www.flyashx.com without having any test cases witin a week time.
What is the difference between a dictionary and an array?
What are the environments supported by vbscript language?
How will you release the memory acquired by an array variable in vbscript?
Mention what is the main difference between function and sub-procedure?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
What is dictionary object in vbscript? Explain?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
How can you fetch the value of a cookie?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
What are class events?
Why to use option explicit in vb script?
Explain the operator precedence in vb script?