table field clearing

Jan Schenkel janschenkel at yahoo.com
Tue Jul 20 14:51:42 EDT 2004


--- Rich Lague <laguer at ucs.orst.edu> wrote:
> 
> I have a table field that I want the users of my
> application to use to 
> make a list. If they decide they don't like their
> list I want them to 
> be able to start over. The problem is that I can't
> seem to delete 
> things from the table field and have them stay
> deleted.
> 
> I put this in the message box:
> 
> delete line 3 of field "daTable"
> 
> Line 3 of the field went blank when I hit return.
> However, when I went 
> to type something new into line 3 of the field the
> old contents 
> suddenly returned when I clicked in the cell. When I
> hit the arrow key 
> to go to the next cell in the line, the rest of the
> previous contents 
> of the line reappeared.
> 
> How can I clear this field so I can put a new text
> file in it, (with 
> just column headers?)
> 
> Thanks!
> 
> Rich Lague
> 

Hi Rich,

This is due to the inner workings of the table field
implementation. To make sure everything is cleaned up,
use the (undocumented) revEmptyTable command :
--
on mouseUp
  put the long name of field "MyTable" into tFieldRef
  revEmptyTable tFieldRef
end mouseUp
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


More information about the use-livecode mailing list