lua-users home
lua-l archive

Re: Return a variable number of values from function

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> function foo ()
> return {6, "hello", {}, 32}
> end
> 
> Result = foo()
> NumValues = getn(Result)
> FirstValue = Result[1]
> LastValue = Result[NumValues]
Okay, so, it was that easy. Thank you very much.
Greetings,
Matt

AltStyle によって変換されたページ (->オリジナル) /