Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WListBox:Delete() Method
Delete an item
------------------------------------------------------------------------------

Syntax
<oWnd>:Delete( [ <nPos> ] )   -->   self

Arguments
<oWnd> is the control.

<nPos> optionally specifies the position of the item to be
deleted.  Item positions count from one (1).  The item
currently selected is deleted if this parameter is NIL.

Returns
SELF.

Description
If it exists, the indicated item is deleted from the control.

Example
METHOD DelFld() CLASS DBFDialog
if ::oFields:RecNo != 0
     ARemove(::aStruct, ::oFields:RecNo)
     ::oFields:Delete()
endif
return 1       // means msg has been processed


See Also: WListBox:Add() CurItem Position

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson