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

multiple columns in text-list?

 [1/3] from: slok00::yahoo at: 24-Dec-2001 3:30


Is it possible to have multiple fields or columns in a text list? Currently, I have a text-list and it display the files in the current directory. 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" thanks YekSoon

 [2/3] from: brett::codeconscious::com at: 24-Dec-2001 7:04


Not really - only using a fixed font and padding between them I think. Better to use the LIST style for multiple columns. By the way, attachments are stripped by Listar so if you have some code you should include it within the body of the message. Brett.

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