On 2022-07-10 21:33, Richard Gaskin via use-livecode wrote:
Brian Milby wrote:

You could also turn the path into an array (but lose the error
checking above):

function getValue pArray, pPath
  split pPath by comma
  return pArray[pPath]
end getValue

Thanks, Brian. I keep forgetting we can use an array as an element specifier.

Has that been around the whole time, or was it added in recent years?

I added it before 6.0 - probably in 4.5 or 5.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to