Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript function

Status
Not open for further replies.

minoad

Programmer
Mar 28, 2001
138
US
Does anyone know if a function can return more that one value, and if so how.

Thanks,

Micah A. Norman
 
You could return an object, structure or an array.
The object could contain multiple values as could the structure or array.
Or you could return values "byref" which is basically a reference to the memory area. Thus, the data is "shared" between the caller of the function and the function itself.

You have to be careful with byref, make sure you realize that any changes to the byref parameter within the function will be replicated back to the caller of the function. Gilbert M. Vanegas
Programmer Analyst III
County of San Bernardino - ISD
Email : gvanegas@isd.sbcounty.gov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top