Login | |
|
 |
RE: Another function question - 4/27/2007 1:01:30 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Another way to return multiple values from a function is to return an array or a dictionary. Dim dicRet Set dicRet = SomeFunc() WScript.Echo dicRet("Foo") WScript.Echo dicRet("Other") Function SomeFunc Dim dicTemp Set dicTemp = CreateObject("Scripting.Dictionary") dicTemp.Add "Foo", "Bar" dicTemp.Add "Other", "Things" SomeFunc = dicTemp End Function
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|