unused multiple return values

Anything related to Hollywood Designer goes in here
Post Reply
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

unused multiple return values

Post 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?
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: unused multiple return values

Post by airsoftsoftwair »

That's not possible. If you don't need the first return value, just use a dummy variable.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: unused multiple return values

Post 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 :)
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: unused multiple return values

Post 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.
Post Reply