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

text-list problem

 [1/3] 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

 [2/3] from: greggirwin::mindspring::com at: 25-Apr-2003 11:06


Hi Gregory, GS> Have a small data base and I want to display first field in one text-list, GS> and when you click on a number in this text-list displays the next field GS> in the second text-list. How about something like this? 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: extract data-base 2 address-list: extract/index data-base 2 2 test: layout [ across data-f1: text-list 40x50 data data-list [ data-f2/line-list: none data-f2/lines: second pick address-list index? find data-list last data-f1/picked show data-f2 ] data-f2: text-list 230x50 ] view test -- Gregg

 [3/3] from: gschwarz:netconnect:au at: 26-Apr-2003 22:33


Thank You for your reply. Extract is one word I have not looked at before, and I will use it from now on. :-) Your answer has helped me see where I was going wrong. Regards, Greg