Mailing List Archive: 49091 messages

# Clueless once more...

### [1/2] from: kpeters::otaksoft::com at: 29-Aug-2007 16:02

Playing with Henrik's most useful list-view I came upon 'totals - it's a= pair with part one denoting the currently showing rows in the list-view and part= two denoting the total number of rows in the list-views 'data. So far so good - while working with it I ran into something I do not= understand: Example: probe lv/totals = 9x9 probe type? lv/totals = pair! probe lv/totals/1 = 9x9 probe type? lv/totals/1 = pair! tmp: lv/totals probe tmp = 9x9 probe type? tmp = pair! probe tmp/1 = 9 probe type? tmp/1 = integer! How is that even remotely possible ? How can tmp/1 be different from lv/totals/1 ? Did they not start out as the same? Can someone please enlighten me? Thanks, Kai

### [2/2] from: henrik::webz::dk at: 4-Sep-2007 19:57

On 30/08/2007, at 1.02, Kai Peters wrote:
> probe type? lv/totals/1 = pair! > tmp: lv/totals
<<quoted lines omitted: 3>>
> Did they not start out as the same? > Can someone please enlighten me?
lv/totals is a function, so giving it /1 as refinement would just work as a function refinment, and not the first element of a pair. To get the correct result, use: probe type? first lv/totals = integer! -- Regards, Henrik Mikael Kristensen

Notes
• Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted