> What if we had a function which takes some tab- and column-delimited data
> and a set of tabstops, and returns the truncated text? Maybe something
> like:
>
> put TruncateColumns( <data>, <tabstops) into fld 1
>
> This would reduce Raney's work significantly over making a whole
> new object
Or to alleviate Scott of this work at all... While I think a truncate
function would be of great use, and should certainly go on the feature list
for MC, couldn't a function such as the above be programmed in MetaCard
itself?
IE, recursively go through a field and check
set the itemDelimiter to ","
put (item x of the tabstops - item (x-1) of the tabstops) into tabwidth
set the itemDelimiter to tab
if the formattedwidth of item x of line y > tabwidth then...
It might not be the most efficient way, granted, but it might work...
Reed
Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.