In the specifications for Blitz userlibs, which can be found here: http://www.blitzbasic.com/sdkspecs/sdkspecs/userlibs_specs.txt
Mark Sibly says:
Neither Banks or objects can be returned from functions.
However, in my experience with userlibs this is not true. You can get objects back from userlibs by simply creating a bank big enough to receive the data. You then get whatever information you need out of the bank with the various Peek functions.
Two examples of programs that I wrote that do this are in the code archives, including:
FTP Using WinInet Userlib Functions --> look at the FTPGetFileList() function
http://www.blitzbasic.com/codearcs/codearcs.php?code=1444
and
FileDate$() and GetFileTime$() --> look at the GetFileTime() function.
http://www.blitzbasic.com/codearcs/codearcs.php?code=1442
I wonder why that quote was included in the userlib specs? It discouraged me from even playing with userlibs for a long time because I thought they were so limited.
Mark Sibly says:
Neither Banks or objects can be returned from functions.
However, in my experience with userlibs this is not true. You can get objects back from userlibs by simply creating a bank big enough to receive the data. You then get whatever information you need out of the bank with the various Peek functions.
Two examples of programs that I wrote that do this are in the code archives, including:
FTP Using WinInet Userlib Functions --> look at the FTPGetFileList() function
http://www.blitzbasic.com/codearcs/codearcs.php?code=1444
and
FileDate$() and GetFileTime$() --> look at the GetFileTime() function.
http://www.blitzbasic.com/codearcs/codearcs.php?code=1442
I wonder why that quote was included in the userlib specs? It discouraged me from even playing with userlibs for a long time because I thought they were so limited.