Traversing through a table
David A. Bayly
dbayly at udena.ch
Fri Oct 18 16:35:38 PDT 2002
local (adr)
for adr in scratchpad.fruits
handle one entry
Does what you need.
General advice, don't use lists in Frontier fi you cna avoid it, they
are very slow. Tbales are much faster.
>Let's say I've got a table called scratchpad.fruit and within the
>fruit table I've got names and values that look like this
>
>Name Value
>apple red, crunchy, round
>grape green, soft, oval
>
>I want to generate HTML code from the table that looks like this
>
><TABLE>
><TR><TD>apple <TD>red <TD>crunchy <TD>round
><TR><TD>grape <TD>green <TD>soft <TD>oval
></TABLE>
>
>I can do the nitty-gritty about extracting values from a
>comma-delimited string and returning the generated HTML text. What
>I would like some advice on is how to traverse the table. Should I
>use table.visit() or a target.set() and table.go() or something
>else? Or should I approach this a different way? (I'm trying to get
>a table of information in Frontier processed for a web page. I
>thought about using an outline, but the information in an outline is
>too vertical (visually) and I wanted to see it within Frontier more
>like a spreadsheet)
>
> - Jeff -
>--
>Jeff Shepherd <jeff at trg.saic.com>
>--
>I love you, not only for what you are, but for what I am when I am with you.
> -- Roy Croft
--
- David Bayly. Programmer and digest reader. dbayly at udena dot ch
Digest Readers do it once a day.
More information about the Frontier-Users
mailing list