Knowledge Share
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Knowledge Share

Knowledge is NOT Power IMPLEMENTATION of knowledge is Power!!!
 
HomePortalGalleryLatest imagesRegisterLog in

 

 VBScript for Returning more than one value from a function

Go down 
AuthorMessage
Admin
Admin



Posts : 142
Points : 59624447
Reputation : 0
Join date : 2007-12-29
Location : Chennai

VBScript for Returning more than one value from a function Empty
PostSubject: VBScript for Returning more than one value from a function   VBScript for Returning more than one value from a function Icon_minitimeMon Feb 21, 2011 2:18 pm

VBScript for Returning more than one value from a function
‘More than one value can returned from a function using Array Variable
‘Following function returns more than one value from a function i.e fnFunctionToReturnMoreThanOneValue
Function fnFunctionToReturnMoreThanOneValue()
x=”www.ramupalanki.com”
y=”QTP”
fnFunctionToReturnMoreThanOneValue=Array(x,y)
End Function

x=fnFunctionToReturnMoreThanOneValue()
‘Calling and assigning the array values to the variable
‘displaying both the returned original x and y values
MsgBox x(0)
MsgBox x(1)
Notepad: Copy the above code into the Notepad, save it as ScriptToReturnMoreThanOneValue.vbs and double click the file
Back to top Go down
https://knowledgeshare.forumotion.com
 
VBScript for Returning more than one value from a function
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Knowledge Share :: Testing :: Automation-
Jump to: