On Thu, Jan 31, 2013 at 9:06 AM, Mark Miesfeld <miesf...@gmail.com> wrote:
>
> On Mon, Jan 28, 2013 at 4:50 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
>
>>
>> Mark, I liked the idea of using sendWith so much that I went ahead and
>>> changed one of my classes to use this technique instead of interpret, but I
>>> can't get it to work.
>>>
>>
>
>> I'm sure this is obvious, I just don't see it. Any ideas?
>>
>
> Sure, I've got ideas. ;-)
>
> ...
> Each add() invocation must have only 1 text item in it.
> Note that for each array returned from ooSQLite, you need 3 invocations of
> add().
>
In ooDialog 4.2.2 which has the addRowWithArray() method, the following
code works, which is closer to what you were thinking maybe:
::method initDialog
-- forward class(super) continue <- does nothing, not needed
lv=self~newListView(100)
d=.array~new
d[1]=.array~of(.nil,"Col2","Col3")
d[2]=.array~of("Row1Col1","Row1Col2","Row1Col3")
d[3]=.array~of("Row2Col1","Row2Col2",.nil)
d[4]=.array~of("Row3Col1","Row3Col2","Row3Col3")
d[5]=.array~of("Row3Col1", .nil,"Row3Col3")
i=0
loop col over d[1]~allItems
lv~insertColumn(i,col,40)
i+=1
end
do i = 2 to d~items
lv~send('addRowFromArray', d[i], , 'NULL')
end
--
Mark Miesfeld
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users