sending arrays to objects
mark at maseurope.net
Sun Nov 19 07:21:00 CST 2006
I'm building yet another table object, and I want to pass data to it
in the form of an array, like so:
send "importArray tArray" to group "tableObject"
The script of the "tableObject" group has:
on importArray tArray
put tArray into sData -- sData is a script local variable
This fails, though without an actual error - the sData variable
I tried using a dummy setProp handler:
setProp tableData tArray
put tArray into sData
but this fails also (I didn't really expect it to work).
Of course, I could just set a customPropertySet of the tableObject,
but I was intending to do some checking of the data before accepting
it and placing it in the sData variable. Actually, I suppose I could
set a customPropertySet and then send a separate message to the table
object that would cause it to check the customPropertySet...so I
guess I've answered my own question!
Still, has anyone come up against this before, and found a neat way
to do it?
More information about the use-livecode