What I did with Rev last night
Kay C Lan
lan.kc.macmail at gmail.com
Fri Jul 6 11:52:51 CDT 2007
On 7/5/07, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> It is so satisfying to be able to write whatever I need. Anyone else
> done little personal stacks with Rev lately?
Finally got sick and tired of trying to track down self generated errors in
very long horizontal lists that are suppose to match. Think arrays and a
list of Keys matching a list of values, or my personal favourite at the
moment, a list of DB column names and a matching list of values.
So, New Main Stack, 3 fields, 1 for the Key/Column list, 1 for the Values
lists, and one for the Output. The entire script looks like this:
ON closefield -- placed in the Row2 field
put empty into field "Output"
REPEAT with x = 1 to the number of items in field "Row1"
put item x of field "Row1" & tab & item x of field "Row2" & return
after field "Output"
The result, the horizontal data is now displayed vertically, nicely lined up
to match. Finding extra, missing or mismatched data couldn't be easier.
It took all of 6 min to make, the question is, why didn't I do it months
More information about the use-livecode