New topic: 

How to escape ""

<http://forums.realsoftware.com/viewtopic.php?t=30645>

       Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic         Author  
Message       rlinsurf           Post subject: How to escape ""Posted: Sat Oct 
24, 2009 11:57 pm                        
Joined: Tue Mar 21, 2006 12:49 am
Posts: 36              I have the following line:
Code:count=CountFields(s, "_jottId""+" value=")

But of course, this doesn't work because I'm not escaping the "". What's the 
proper way to do this?   
                            Top               rlinsurf           Post subject: 
Re: How to escape ""Posted: Sun Oct 25, 2009 12:14 am                        
Joined: Tue Mar 21, 2006 12:49 am
Posts: 36              I just checked the reference and indeed it says that "\" 
is the escape character. So I tried 
Code:count=CountFields(s, "_jottId\" value=\"")
But that just throws errors for unfinished quotes.

What am I doing wrong?   
                            Top               Karen           Post subject: Re: 
How to escape ""Posted: Sun Oct 25, 2009 12:28 am                        
Joined: Fri Sep 30, 2005 8:53 am
Posts: 691              Code:count=CountFields(s, "_jottId"""+" value=")   
                            Top               Blake           Post subject: Re: 
How to escape ""Posted: Sun Oct 25, 2009 1:53 am                        
Joined: Fri Sep 30, 2005 8:39 pm
Posts: 206
Location: Arlington, TX              There is always chr( 34 ) which is "

Code:count = CountFields( s, "_jottId" + chr( 34 ) + " value=" )   
                            Top               rlinsurf           Post subject: 
Re: How to escape ""Posted: Sun Oct 25, 2009 1:59 am                        
Joined: Tue Mar 21, 2006 12:49 am
Posts: 36              Both perfect -- thank you    
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to