Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] text-list problem

From: gschwarz:netconnect:au at: 26-Apr-2003 0:44

Looking for help! Have a small data base and I want to display first field in one text-list, and when you click on a number in this text-list displays the next field in the second text-list. Below is a test example of the type of thing I what to do, without the updating the second text-list. Hope you can help. Regards, Greg rebol [] data-base: [ "1" [ address [ "123 bla st" "45 High road" ]] "2" [ address [ "34 first st" "45 High road"]] "3" [ address [ "56 Wood Rd" "45 High road" ]] "4" [ address [ "6 Small Rd" "45 Small road" ]] "5" [ address [ "7 Big Rd" "5 Big road" ]] "6" [ address [ "6 Low Rd" "4 High road" ]] ] ;end of data-base data-list: [] foreach [record record-address] data-base [append data-list record ] address-list: [] foreach address data-base/2/address [ append address-list address ] test: layout [ across data-f1: text-list 40x50 data data-list data-f2: text-list 230x50 data address-list ] view test