returning multiple values from called funct
Hi,
I am new to .asp pages and have a basic question. I am trying to code a function which returns multiple values. Here is the scenerio:
The userid and department will be sent to a function. The function will query this info and return 5 fields. These fields are used by the calling form to route processing within the application.
Code example from calling form:
If strUIDType = "Common" Then
processCBUnits strUsername, strDepartment
End if
Function code:
Function processCBUnits(strUsername, strDepartment, byRef strFormNo1, byRef strFormNo2, byRef strFromNo3)
The function then queries the database for appropriate values.
I'd like to send strFormNo1, strFormNo2, and strFormNo3 back to the calling form.
Thanks!
|