[Gambas-user] Fill ColumnView

Martin van Es mrvanes at ...626...
Mon Jan 31 11:35:08 CET 2005


Hi,

Hello everybody! My name is Martin and am probably one of the many
Gambas users triggered by the 1.0 release posting on /. :)
Since then it has fascinated me and I'm very eager to write my own
simple but efficient bookkeeping tool which was long needed... :)

My programming experience is a bit of Basic (long time ago, C64, M$
macro's), Pascal, C, C++, assembler, and lately most of my programming
(99%) is in PHP.

I like the fast development cycle of PHP and think to have found that
in Gambas as well.

I found a lot of answers to my questions in this list allready, but 1
thing struck me as very inconvenient and I just wanted to know if its
realy the only solution:

I like the ColumnView class for it's ability to show (or not show) a
lot of info at a glance and the hierarchical capabilities. Filling a
ColumnView row however seems to be a bit cumbersome to say the least.
This is what I do at the moment as a trial before kicking in the
database code.

PUBLIC SUB Populate_Income_ClientView()
  client AS String[]
  i AS Integer 
  
  WITH ClientView
    client = ["FooBar", "John Doe", "555-345678", "1"]
    .Add("1", client[0])
    FOR i = 1 TO 3
      ClientView["1"][i] = client[i]
    NEXT
  END WITH
END

What I'm really curious of is, if it's possible to skip the for-next
loop to fill the columns? Is there any array.copy() like method or
function to quickly and efficiently copy the contents of given array
(and later, db result) into the columns?

Last but not least: Thanks to Benoit et al., for making this great
tool publicly available!

Regards,
Martin
-- 
if but was any useful, it would be a logic operator




More information about the User mailing list