Indigo Rose Software
  #1  
Old 03-16-2008
pjborg's Avatar
pjborg pjborg is offline
Forum Member
 
Join Date: Feb 2001
Location: Washington State
Posts: 120
Grid object text input

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.
Reply With Quote
  #2  
Old 03-16-2008
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Try this:

Code:
Grid.SetCellText("Grid1", 1, 1, '"Hey all"')
Or for a variable based string:

Code:
Grid.SetCellText("Grid1", 1, 1, '"'..strTxt..'"')
__________________
Intrigued
www.amsuser.com

Last edited by Intrigued; 03-16-2008 at 06:17 PM.
Reply With Quote
  #3  
Old 03-17-2008
pjborg's Avatar
pjborg pjborg is offline
Forum Member
 
Join Date: Feb 2001
Location: Washington State
Posts: 120
Using the first option displays the error:
Quote:
On Cell Changed, Line 0: `=' expected near `all'
if your code is changed to
Code:
Grid.SetCellText("Grid1", 1, 1, '"Heyall"')
the error becomes
Quote:
On Cell Changed, Line 0: attempt to call global `Heyall' (a nil value)

Using the second option, if strTxt = "Test String" the error is:
Quote:
On Cell Changed, Line 0: `=' expected near `String'
and if you remove the space, and strTxt = "TestString" the error becomes:
Quote:
On Cell Changed, Line 0: attempt to call global `TestString' (a nil value)
Thanks for offering those, though... pj

Last edited by pjborg; 03-17-2008 at 07:04 PM. Reason: Thanks
Reply With Quote
  #4  
Old 03-17-2008
pjborg's Avatar
pjborg pjborg is offline
Forum Member
 
Join Date: Feb 2001
Location: Washington State
Posts: 120
Sorry!!! Your code works fine to add text into the cell... Apparently I'm doing something wrong sending that text elsewhere!
Reply With Quote
  #5  
Old 03-17-2008
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
No problem. Ya, tracking down bugs... got to love it. I've been there enough times myself, in the past.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #6  
Old 03-17-2008
pjborg's Avatar
pjborg pjborg is offline
Forum Member
 
Join Date: Feb 2001
Location: Washington State
Posts: 120
However...

However, manually typing a double quote into the cell still results in that error.
Reply With Quote
  #7  
Old 03-17-2008
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Ya, I noticed that too.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #8  
Old 03-18-2008
pjborg's Avatar
pjborg pjborg is offline
Forum Member
 
Join Date: Feb 2001
Location: Washington State
Posts: 120
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?
Reply With Quote
  #9  
Old 03-18-2008
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Would take a workaround would seem.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #10  
Old 03-19-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
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.
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java to Autoplay. Find text in input object problem dorkauf89 AutoPlay Media Studio 6.0 0 03-10-2008 08:08 PM
Get text from Input object ianhull AutoPlay Media Studio 5.0 11 09-14-2004 12:19 PM
Input object graying out dthompson16 AutoPlay Media Studio 5.0 7 07-28-2004 08:28 PM
Function: Test Whether An Input Object Is Empty Lorne AutoPlay Media Studio 5.0 Examples 0 06-08-2004 03:18 PM
INFO: Difference between the Media Player Object and the AVI Object Support AutoPlay Media Studio 4.0 Examples 0 10-29-2002 03:15 PM


All times are GMT -6. The time now is 10:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software