Assume I have a UDF that accepts an SFTP sever ID and a task number. Within the UDF the appropriate user, password, SFTP server login ID and passphrase will be sent to a WinSCP function for execution.
Question is: I know I can place the multiple return values into an array, but wonder if instead I create a Map [retvals] can that be returned and sent to WinSCP function so that rather than WinSCP sessions having
user = Array[0]
it would be
user = retvals["user"]
All based on request for more 'readability' from code. Anything for work has to be compiled exe so practice is limited.
Or I could have just asked "Can a map be create in one function and sent as a parameter to another function and still be treated as a map"?