Can Custom Functions Return Arrays?

Dave Cragg dave.cragg at lacscentre.co.uk
Thu Jul 19 15:06:20 EDT 2007


On 19 Jul 2007, at 19:31, Gregory Lypny wrote:

> So, is it that Revolution custom functions cannot return arrays or  
> am I doing something wrong?


Right. But you can pass in a reference to an array as a function  
argument, which may help you.

function testFunction @pArray
   ##whatever
   put "sometext" intp pArray[3]
    ##whatever
   return empty
end testFunction

And in the calling handler:

local tArray
get testFunction(tArray)

Cheers
Dave



More information about the Use-livecode mailing list