Going MAD with customKeys!!!!!
David Burgun
dburgun at dsl.pipex.com
Wed Nov 2 09:04:37 EST 2005
Hi All,
I have a stack that is used as a library stack. I use it to hold data
for in arrays which are stored in Custom Properties.
I create the arrays like this:
put "XXX" into theName
function SetArray(theName,theArray)
put "cp_PrefsArray_" & theName" into myArrayName
set the customProperties[myArrayName] of me to theArray
end SetArray
function GetArray(theName)
put "cp_PrefsArray_" & theName" into myArrayName
put the customProperties[myArrayName] of me to myArray
return myArray
end SetArray
Also in the Stack Script:
on libraryStack
local myArray
put "XXXX" into myArray("KeyX")
get SetArray("Name",myArray)
set the customKeys of me to empty
put GetArray("Name") into myArray --Check if the above worked
end libraryStack
But myArray is not "empty" it contains garbage from ages ago!
Can anyone please just tell me how to clear all the customProperties
in a stack?
Thanks a lot
All the Best
Dave
More information about the use-livecode
mailing list