Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Generic behavior to copy a file
RadioGroup
Creating a Marquee Tool
Scale-Alphamania
convert to upper or to lowercase
Print Current Marker
Universal serial port behavior
EZ CD Creator
Number of CD Tracks - MCI
Advanced Lingo for Games
MediaMacros Xtras Mall
 

 

 

Behavior Delete one or more items

Added on 6/29/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: MetaforceInteractive

deleteListItem(list, itemToDelete, deleteAll)list is the list to have items deleted from itemToDelete is the item to be deleted from the list deleteAll is a flag which can be true or false if deleteAll is true, all occurrences of itemToDelete will be removed from the list.

--Copyright © 1997 -1998 Metaforce Interactive.
--http://www.metaforce.com
on deleteListItem list,itemToDelete,deleteAll
  set numItems = count(list)
  repeat with i = 1 to numItems
    if itemToDelete = getAt(list,i) then
      deleteAt(list,i)
      if deleteAll then
        set numItems to numItems - 1
        set i to i - 1
        next repeat
      else
        exit repeat
      end if
    end if
  end repeat
end    

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail