I have a mainscript that calls a function, and this function gets some data from a database.
Code:
"Begin"

GetSharesPrinters(@UserID)
Exit 1




This function creates two array's, one containing Sharesinfo and the other Printerinfo. But i can only return one of these arrays:
Code:
 Function GetShares&Printers($Logon)

"Do sommething"
$GetShares&Printers = $Shares
EndFunction



Is it possible two return both Shares and Printers?

Problem solved, i use "Global" arrays. And "redim" them in the function.


Edited by googhum (2005-01-28 03:45 PM)