0

I have a basic table field.
I only need three columns but it displays more.
How do I limit it to three?
And how do I set the width of the columns?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
z--
  • 2,186
  • 17
  • 33

2 Answers2

1

If you have a 600 pixel wide field named "Data" with tab delimited data;

set the tabStops of field "Data" to "200,400,600"

will set the column widths. The last tab stop at 600 throws any content beyond the third column outside of the visible area of the field.

splash21
  • 799
  • 4
  • 10
0
set the tabStops of fld "Data" to 100,0,150,0,0

will hide column 2 and 4, 5, 6, ..., n.

If you want to hide the column, set it's width to 0. If the last parameter is 0 then the rest of columns will be not visible, and it'll be missing vertical line of last visible column. If you want vertical line after last field, add additional 0 [set ... to 100,0,200,0,0]

  • `set the tabStops of fld "Data" to 200,100,50, 0` gives three columns of the width 200, 100 and 50. Thank you. – z-- May 05 '13 at 13:48
  • I prefer this answer because I do not need to add up the columns widths and I do not need to be concerned about the width which is used to display the grid. – z-- May 05 '13 at 13:51