Puzzled about stack size

Jim Hurley jhurley at infostations.com
Sun Feb 8 08:45:48 EST 2004


>
>These table fields are my new Zen Koan. Very ephemeral.
>
>Try this:
>
>1) Create a stack with a single field.
>2) Go to its property inspector and under "table" check the "table
>object" and "cell editing" boxes.
>3) Put something in cells a1, a2, b1 and b2 (Excel notation.) Maybe
>just four letters, a,b,c,d.
>4) In the message box type: put empty into field 1 -- As expected,
>the data disappears
>5) Ah, but it's not gone. Go to the property inspector again and
>select "table".
>6) Voila, the data returns.
>
>It appears that table fields have a dual personality. (Mac OS 9, RR 2.1.2)
>
>Jim


>Richard Gaskin wrote:
>
>Indeed they do.  See the Rev custom property sets installed in the object.
>
>If you need tabular display but nothing else, you can turn off the Table
>option and just set the hGrid and vGrid properties to display tab-delimited
>text in a columnar format.

Jan Schenkel wrote:

>
>Hi Jim,
>
>The built-in table functionality uses several copies
>of the data to accomplish its work :
>   cREVTable["currentview"]
>   cREVTable["formattedview"]
>
>Unfortunately, these do not automatically get emptied
>when you empty the field -- there is currently no way
>to trap changes in the built-in properties of
>cpntrols, so the RunRev crew couldn't even do it
>unless the engine was changed.
>
>And as you have noticed, the table functions will
>resurrect the data if you set the text of the field to
>empty.
>The best way to make sure the content of a table field
>is emptied, is by using the undocumented command
>'revEmptyTable" :
>--
>   revEmptyTable "Foobar"
>--
>
>Hope this helped,
>
>Jan Schenkel.


Jan and Richard,

Well that clears up that mystery. I have to return to 
one-hand-clapping for my Zen Koan.

Still very strange, and I never would have guessed on my own. Thanks much.

(I will have to put revEmptyTable in my folder of the inscrutable.)

Jim


More information about the use-livecode mailing list