Re: Allow a sequence as a subscript

new topic     » goto parent     » topic index » view thread      » older message » newer message

A more immediate solution would be to use a function to get the required element. I think the following function might work, but I have not tested it very well.

 
function getElement( object array, object subscripts ) 
	subscripts &= {}		-- Make it a sequence 
	for n = 1 to length(subscripts) do 
		array = array[subscripts[n]] 
	end for 
	return array 
end function 


new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu