number of columns in a table field
Russ McBride
russmcb at tsw.berkeley.edu
Tue May 30 18:59:46 EDT 2006
Thanks Bill, that works nicely.
I don't know now what "viewablecolumns" is supposed to track since
the number of columns in view at any given moment is different from
it and the total number of columns is different from it.
And what's the difference between "currentview" and "formattedview"?
Best,
russ
Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853
On May 30, 2006, at 2:37 PM, Bill Marriott wrote:
> If you're trying to determine how many columns the actual data has, as
> opposed to how many columns are visible, the following would work
> (though I
> don't know if it is the fastest or most clever method):
>
> put 0 into maxTabs; set the itemdelimiter to tab
> repeat for each line x in fld "theField"
> if the number of items in x > maxTabs then \
> put the number of items in x into maxTabs
> end repeat
>
> I agree with you that the table object is extremely frustrating.
>
> Russ McBride wrote:
>
>> Anyone know how to get the actual number of columns and rows in a
>> table
>> field (not the "viewable" number of columns and rows?
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list