Search found 3 matches

by evil_twin
May 09, 2017 13:38
Forum: Beginners
Topic: Can functions return arrays?
Replies: 40
Views: 6426

Re: Can functions return arrays?

sancho2 wrote:There is also the option of wrapping the array in a type and returning that:
Thanks - this is probably what I was looking for. at least there is a workaround ...
by evil_twin
May 05, 2017 18:22
Forum: Beginners
Topic: Can functions return arrays?
Replies: 40
Views: 6426

Re: Can functions return arrays?

Thanks for the replies. In the end I just plonked in some inline code. Not as elegant but will run faster that way. As for GOTOs and GOSUBs, I understand they can be much more efficient then procedures and such like, but you need a lot of discipline to keep your code tidy ...
by evil_twin
May 05, 2017 12:26
Forum: Beginners
Topic: Can functions return arrays?
Replies: 40
Views: 6426

Can functions return arrays?

Hi, I'm fairly new to FreeBasic (after a few decades of absence from PowerBasic) and spoiled by PHP. I've been looking through the manual and couldn't find out if a function can return an array, even if it can be passed one. Any ideas please?