Articles Archive
Director Forums
Director Wiki
Job Board
Search
 
 Director Online WikiMain Page | About | Help | FAQ | Special pages | Log in | Printable version | Disclaimers

DeleteProp

From Director Online Wiki

Table of 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

Retrieved from "http://www.director-online.com/dougwiki/index.php/DeleteProp"

This page has been accessed 921 times. This page was last modified 08:53, 2 Aug 2005.