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

[REBOL] Re multiple columns in text-list?

From: sunandadh:aol at: 23-Dec-2001 16:03

Hi Yeksoon,
> The code is as follows: > > > text-list data read %. > > > > how can I include more columns? > eg. Text-list to show "filename", "date of file", and "file size" >
You have to do two things. First, get the file attributes, Use Info? to get them: FileName: %autoexec.bat FileAtts: info? FileName Probe FileAtts This probably means writing your own loop: foreach FileName Read %. [...fill in data structure with stuff to display ...] Second, you need List rather than Text-list. I've not used them. This example is from Anton a few months ago: <<<<< Yes, it's called LIST. It's not too simple to use, however there are examples around. Here's a starter for you: blk: [["one" "two"]["three" "four"]] view layout [list 400x200 [across field button] data blk] Refreshing requires a supply function.
Hope that helps a little, Sunanda.