Alternate Entry Name: _TABS
B: .tabs( ptr [, maxcol] )
C: void _tabs(void *ptr [, int maxcol] );
.TABS is a convenient way to set user-specified tabs. It will normally be called with "ptr" pointing to an array of numbers as returned by .BSET. This means that the first element in the array is a count of the number of elements which follow. .TABS will clear any current tab settings, set tabs for the columns specified in the structure, and then fill out the tab settings to column "maxcol".
If only one value <n> is listed in the given array, tab stops will be set every <n> columns along the line, beginning at column one. Otherwise, the difference between the last two specified stops is used as an increment for setting the remaining tabs in the line. If the last two values are the same (i.e. the increment is zero), no tab stops will be set except the ones specified in the array.
.tabs( ptr ); if ptr is defined as ptr[] { 5, 8, 16, 32, 35, 40}; tabs are set at 8,16,32,35,40,45,50,... and every 5 up to 256.
if ptr is defined as ptr[] {1, 10}; tabs are set at 1,11,21,31,... and every 10 up to 256.
if ptr is defined as ptr[] {3, 5, 10, 10}; tabs are set at 5 and 10 only.
Copyright © 1996, Thinkage Ltd.