TSBrowse

106 views
Skip to first unread message

Gilbert Vaillancourt

unread,
May 25, 2026, 1:52:53 PM (13 days ago) May 25
to Harbour Minigui
Hi All,

I'm not too familiar with TSBrowse, even though I try to rely on samples, I still have a lot to do to master this command. Especially with Arrays...

I get the following error. My array has 5 rows and 4 columns.


2026-05-25_13h15_50.png

Here is a snippet of my code that result in an error :

 oBrwValue:SetArray(aValue)
 nColCount := Len(aValue[1])

 for z = 1 to nColCount

         // Error occurs at the following line:
         add column to oBrwValue data array element z    ;
             header "Column "+ HB_NtoS(z) ;
             width 220 ;
             align DT_LEFT                               ;
             editable                              


  next z

What am I doing wrong ?

Regards

Gilbert Vaillancourt


Krzysztof Stankiewicz

unread,
May 27, 2026, 11:12:29 AM (11 days ago) May 27
to Harbour Minigui

Hello,
If line number 1041 is tsbrows, it means that somewhere in the program you're referencing a column that doesn't exist.
 header, footer, or other

Krzysztof Stankiewicz

unread,
May 29, 2026, 5:15:38 PM (9 days ago) May 29
to Harbour Minigui
Try this
zc := str(z)
add column to oBrwValue data array element &zz    ;
             header "Column "+ HB_NtoS(z) ;
             width 220 ;
             align DT_LEFT                               ;
             editable     

Krzysztof Stankiewicz

unread,
May 29, 2026, 5:45:43 PM (9 days ago) May 29
to Harbour Minigui
Now correct:
zc := str(z)
add column to oBrwValue data array element &zc    ;
             header "Column "+ HB_NtoS(z) ;
             width 220 ;
             align DT_LEFT                               ;
             editable     


Reply all
Reply to author
Forward
0 new messages