DeleteProp
From Director Online Wiki
Contents
Description
Property list and list method, global function.
Returns
integer (1=ok, 0=err: property not found)
Always returns 0 when used with lists.
May produce script error ("index out of range") when used with lists.
Example
vPl = [#a:10, #b:20, #c:30] put vPl.deleteProp( #b ) -- 1 put vPl.deleteProp( #b ) -- 0 put deleteProp( vPl, #c ) -- 1
vLst = [10,20,30] put vLst.deleteProp( 2 ) -- 0 put vLst -- [10, 30] put deleteProp( vLst, 2 ) -- 0 put vLst -- [10]
Links
see Lists