--- Oleg Kobchenko wrote: > > --- "Sherlock, Ric" <[EMAIL PROTECTED]> wrote: > > > I have an editable grid that contains strings. > > If I select a cell and press the delete key, the string is deleted and > > replaced with 0. If I then double click on the cell to edit it, I can > > type in a string, but when I press Enter I get the error message: > > "Not a number: my text". > > There doesn't seem to be a way to enter a string in the cell again? > > Grid cells are typed by data. So if it initially > contained numeric it can only stay numeric. > If you want any values, then you need to > convert the numerics to strings before the > data is set to the grid. Thanks, I will try & see if I can figure out how to do that.
It does surprise me then though that when a cell containing a string is deleted, it is replaced by a numeric zero. If I double click on the cell, delete the string that way and press Enter, the cell is empty - no zero. That would be the behaviour I would expect on pressing the Delete key as well, if the Grid cells honour the initial type. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
