Problem with send command???
Mark Wieder
mwieder at ahsoftware.net
Thu Jun 26 16:21:32 EDT 2008
Jim-
Or, more generically,
(button script)
on mouseUp
local tMyArray
local tName, tValue
-- insert sample data
put 42 into tMyArray["Vera"]
put 42 into tMyArray["Chuck"]
put "Dave" into tName
put 123 into tValue
combine tMyArray using cr and tab
send "TestIt tMyArray, tName, tValue" to this stack
put the result into tMyArray
split tMyArray using cr and tab
-- verify the test
put the keys of tMyArray into field 1
end mouseUp
(stack script)
on TestIt pArray, pName, pInt
split pArray using cr and tab
put pInt into pArray[pName]
combine pArray using cr and tab
return pArray
end TestIt
...and thanks for the tip. This is way useful.
--
Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list