Hi,
Sorry I don't don't get it. I have a number of Arrays stored as:
"cp_PrefsArray_NAMEA"
"cp_PrefsArray_NAMEB"
"cp_PrefsArray_NAMEC"
But I don't know the names (NAMEA,NAMEB,NAMEC) in the script. I just
want to empty them all and start again. I thought that setting
customKeys to empty should do this - according to the docs anyway. Is
this correct? If not how can I do this?
Thanks a lot
Dave
David,
Before i went mad, i was already crazy ;)
The best trick i can give you is this:
put the myprops["keyname"] of mystack into x
x is not an array.
put the myprops of mystack into x
x is an array...
BUT, you cannot store an array into the myprops["keyname"] of mystack
only into the myprops of mystack
simply because Rev can't [yet] embed arrays into arrays...
hope that helps...
I TRIED TO PASTE YOUR SCRIPT INTO mc BUT IT REFUSED TO GET THE RIGHT
CLIPBOARD
despite trying from notes to ultraedit to mc 3 times and it didn't go into
mc...
cheers
Xavier
[EMAIL PROTECTED] wrote on 02/11/2005 15:04:37:
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
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
-----------------------------------------
To make communications with Clearstream easier, Clearstream has
recently changed the email address format to conform with industry
standards. The new format is '[EMAIL PROTECTED]'.
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE
Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.
The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.
END OF DISCLAIMER
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution