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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ittzy
Posts: 27
Joined: Thu Feb 04, 2016 11:48 pm

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

Post by ittzy » Mon Apr 18, 2016 12:07 am

Hi im trying to set a basic table to 3 columns, I googled some but cant really find anything except this set the tabStops of fld "data" to 200,100,0 but it dos not work.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How do I limit the number of columns of a basic table fi

Post by dunbarx » Mon Apr 18, 2016 4:26 am

Hi.

There is no "limit" to the width of a table field, which is just an ordinary field with special properties. In other words, if you want three columns, set your tabStops as you wish, and then set the field width. What you get is what you see.

As for those tabStop values, read the dictionary entry and play around a little. Pay particular attention to what it means to place a tabStop with a value less that its predecessor.

Now then, if your question was really this:
How do I prevent tabbing in a tab field from going off the right end of the control?
or rather
How do i force a tab when in column 3 to go to the next row in column 1?
Then write back. But that is a different question.

Craig Newman

Post Reply