Page 1 of 1

unused multiple return values

Posted: Mon Aug 28, 2017 9:58 am
by r-tea
There are functions that return multiple values at once. For example:

Code: Select all

ico_type, tt, deftool$ = GetIconProperties(prg_name$ .. ".info")
In this particular case I need only tooltypes array.
How to make the function return tooltypes only into a single variable on the left side?

Re: unused multiple return values

Posted: Tue Aug 29, 2017 5:40 pm
by airsoftsoftwair
That's not possible. If you don't need the first return value, just use a dummy variable.

Re: unused multiple return values

Posted: Mon Sep 04, 2017 11:09 pm
by r-tea
airsoftsoftwair wrote:That's not possible. If you don't need the first return value, just use a dummy variable.
Another case worth to clarify in docs :)

Re: unused multiple return values

Posted: Tue Sep 05, 2017 5:34 pm
by airsoftsoftwair
r-tea wrote:Another case worth to clarify in docs :)
Ah, I think it's common sense. I've never seen a programming language which allows that. It would be very confusing.