Page 1 of 1

browsecol optimal width

Posted: Mon Nov 14, 2011 3:38 am
by c-tec
Hello,
how can set the correct width of a browsecol when browsing an multidimensional array ? For now I check the array elements for the biggest value and set the size of the column, but this does not work in all cases.
regards
Rudolf

Re: browsecol optimal width

Posted: Mon Nov 14, 2011 9:06 am
by rdonnay
Use the OPTIMIZE clause of @ .. DCBROWSE.

This will optimize a column when double-clicked in the header.

To force a column to optimize on startup:

DCBROWSECOL EVAL {|o|PostAppEvent(xbeM_DblClick,{0,0},,o:heading)}