Results 1 to 7 of 7

Thread: TreeGrid with array as rowsource?

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    205

    TreeGrid with array as rowsource?

    in the Canvas section, I want to use TreeGrid Advanced Control using an array as a row source.
    In the description I found that rousourcetype = 5 is possible for such a case.
    Does this description also apply to TreeGrid?
    This is a one dimansional fixed array with 2 columns. How do I enter source code? If the array is named aRy, then
    .rowsource = aRy or .rowsource = "aRy"? or otherwise?
    Need to specify additional attributes to appear grid?

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Posts
    1,239
    Hi Strato.

    Have you looked at using cursors in Lianja. They are more useful than arrays as they are like temporary tables. I don't use the canvas section much, but give that a try.

    Herb

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,220
    Yes it applies o TreeGrid also.

    You set the rowsourcetype=5 first
    Then when you set rowsource="array name" it is populated.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Senior Member
    Join Date
    Oct 2012
    Posts
    205
    thanks Herb,
    yes I'm experiencing this too, I use TreeGrid this way now (unfortunately there is a problem with utf8 characters here, maybe you have a solution for that?)

  5. #5
    Senior Member
    Join Date
    Oct 2012
    Posts
    205
    hi Barry
    Quote Originally Posted by barrymavin View Post
    Then when you set rowsource="array name"
    if I set it that way, Lianja will crash.
    Debug file:
    Code:
    File ../../lib_dbw.cpp at line 1794 dbw_execute() command=set debug on rc=0 (Success)
    File ../../mainwindow.cpp at line 82845
    Class Formitem Object OBJECT(198301728,560765712) SetProperty: name='rowsource' value=C:aRy
    Class Tree Object OBJECT(198301728,560020720) SetProperty: name='rowsource' value=C:aRy
    Class Treeitem Object OBJECT(198301856,0) Method: name='CONSTRUCTOR'
    Class Treeitem Object OBJECT(198301984,0) Method: name='CONSTRUCTOR'

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,220
    That has been fixed already in Lianja 6.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  7. #7
    Senior Member
    Join Date
    Oct 2012
    Posts
    205
    thanks Barry!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us