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

[REBOL] length? pick problems

From: vache::bluejellybean::com at: 25-Nov-2000 15:21

REBOL [] table-data: ["CREAF" "" "" "" "Nasdaq-NM" "" "" "" "$" "14.3125" "" "" "" "0.4375" "" "" "" "3.15%" "" "" "" "28,800" "CSCO" "" "" "" "Nasdaq-NM" "" "" "" "$" "52.6875" "" "" "" "2.125" "" "" "" "4.2%" "" "" "" "21,082,300" "DELL" "" "" "" "Nasdaq-NM" "" "" "" "$" "24.375" "" "" "" "1.375" "" "" "" "5.98%" "" "" "" "10,594,700" "COMS" "" "" "" "Nasdaq-NM" "" "" "" "$" "14.125" "" "" "" "0.125" "" "" "" "0.89%" "" "" "" "1,784,500" "SUNW" "" "" "" "Nasdaq-NM" "" "" "" "$" "84.875" "" "" "" "4.875" "" "" "" "6.09%" "" "" "" "10,086,900"] x: length? table-data count: 1 repeat count x [if length? pick table-data count = 0 [remove table-data count]] print table-data halt --- The goal is to loop through the block, and remove all the "" (emptey) values. However, I get an error on (length? pick table-data) Any ideas? Thanks in advanced fellow rebolers :] Vache