home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rox.zip
/
wordlist.rox
< prev
Wrap
Text File
|
1993-08-28
|
1KB
|
51 lines
:*------------------------------------------------------------------
:* REXX Object eXtensions : list class
:*------------------------------------------------------------------
:class wordlist
:include collect.rox
:inherits collection
:vars list
:*------------------------------------------------------------------
:* create a list
:*------------------------------------------------------------------
:method init
list = ""
return
:*------------------------------------------------------------------
:* return number of items
:*------------------------------------------------------------------
:method size
return words(list)
:*------------------------------------------------------------------
:* add an item to the list
:*------------------------------------------------------------------
:method add
list = list arg(1)
return self
:*------------------------------------------------------------------
:* get an item
:*------------------------------------------------------------------
:method atIndex
index = arg(1)
return word(list,index)
:*------------------------------------------------------------------
:* get an item
:*------------------------------------------------------------------
:method at
index = arg(1)
return word(list,index)