home *** CD-ROM | disk | FTP | other *** search
- LISTING 1
-
- function main
- local fields_ := { "LNAME", "ADDRESS" }, ahold_ := {}
- use rolodex new
- for x = 1 to len(fields_)
- aadd(ahold_, fieldget(fieldpos(fields_[x])) )
- @ x, 1 say padr(fields_[x] + ":", 12) get ahold_[x]
- next
- read
- //───── now dump array contents to the fields of this record
- aeval(ahold_, { | ele, num | fieldput(fieldpos(fields_[num]), ;
- ele) })
- return nil