home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!sun-barr!ames!haven.umd.edu!darwin.sura.net!cs.ucf.edu!ocoee!mcampbel
- From: mcampbel@ocoee (Mike Campbell )
- Subject: compound variable question
- Message-ID: <1992Sep15.155313.2494@cs.ucf.edu>
- Sender: news@cs.ucf.edu (News system)
- Organization: University of Central Florida
- X-Newsreader: Tin 1.1 PL4
- Date: Tue, 15 Sep 1992 15:53:13 GMT
- Lines: 23
-
- Is there any way to 'remember' the indices used in compound variables?
-
- i.e., I have some rexx code that gathers words from a text file,
-
- then, I do this:
-
- count.word = count.word + 1
-
- where 'word' the actual word having been gotten. The upshot of this is
- that the 'count' array ends up looking like:
-
- count.'if' = 3
- count.'then' = 2
- count.'anything_else' = 1
-
- etc.
-
- Is there any way to go through the indices of count, without having to
- specifically keep track of the words used as the indices?
-
- (Similar to awk: for (index in array) {} type of thing...)
-
-
-