Search code examples
livecode

How do I limit the number of columns of a basic table field?


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?


Solution

  • 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]