PDA

View Full Version : Grid object text input


pjborg
03-16-2008, 01:19 PM
When entering text into a cell of the new Grid object, apparently it won't accept quotation marks? It displays the following error if the text includes a double quote in the object "Grid1" on project Page1:

On Cell Changed, Line 0: unfinished string near `";--@@Page1 -> Grid1 -> On Cell Changed
'

Thanks.

Intrigued
03-16-2008, 06:14 PM
Try this:

Grid.SetCellText("Grid1", 1, 1, '"Hey all"')

Or for a variable based string:

Grid.SetCellText("Grid1", 1, 1, '"'..strTxt..'"')

pjborg
03-17-2008, 07:02 PM
Using the first option displays the error:
On Cell Changed, Line 0: `=' expected near `all'

if your code is changed to
Grid.SetCellText("Grid1", 1, 1, '"Heyall"')
the error becomes
On Cell Changed, Line 0: attempt to call global `Heyall' (a nil value)


Using the second option, if strTxt = "Test String" the error is:
On Cell Changed, Line 0: `=' expected near `String'

and if you remove the space, and strTxt = "TestString" the error becomes:
On Cell Changed, Line 0: attempt to call global `TestString' (a nil value)

Thanks for offering those, though... pj

pjborg
03-17-2008, 07:32 PM
Sorry!!! Your code works fine to add text into the cell... Apparently I'm doing something wrong sending that text elsewhere! :rolleyes

Intrigued
03-17-2008, 07:58 PM
No problem. Ya, tracking down bugs... got to love it. I've been there enough times myself, in the past.

pjborg
03-17-2008, 07:58 PM
However, manually typing a double quote into the cell still results in that error.

Intrigued
03-17-2008, 08:03 PM
Ya, I noticed that too.

pjborg
03-18-2008, 11:52 AM
Unless I'm mistaken, there is no way to filter that either, so users who typed in a double quote would receive that error message?

Intrigued
03-18-2008, 08:46 PM
Would take a workaround would seem.

Darryl
03-19-2008, 07:32 AM
I've confirmed what you're experiencing and have submitted it to be looked into. REF: 17313

Unfortunately I cannot find a workaround to this particular problem.