New topic: 

Invalid Characters

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

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        S.Rampling          Post subject: Invalid CharactersPosted: Sat 
Mar 19, 2011 12:38 am                         
Joined: Sat Jan 08, 2011 4:47 pm
Posts: 174
Location: Sydney, Australia                How do I test for invalid characters.

Thanks Shane.      
_________________
Thanks to any and all who can help with my limited knowledge of Real Studio.
54YO Kart Racer from Sydney Australia
Real Studio 2010r5.1 Win 7  
                             Top                 DaveS          Post subject: 
Re: Invalid CharactersPosted: Sat Mar 19, 2011 12:53 am                         
        
Joined: Sun Aug 05, 2007 10:46 am
Posts: 2861
Location: San Diego, CA                define what you mean by "invalid 
characters"?

Characters not allowed in a filename? a password?  character codes that violate 
a particular encoding scheme?      
_________________
Dave Sisemore
MacPro, OSX 10.6.4 RB2009r5.1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                S.Rampling          Post 
subject: Re: Invalid CharactersPosted: Sat Mar 19, 2011 1:00 am                 
        
Joined: Sat Jan 08, 2011 4:47 pm
Posts: 174
Location: Sydney, Australia                Hi Dave, I think I have found the 
problem, I haven't defined any encoding, in the following code, what would I 
need to do or change to make it handle multiple textfields textfields.Code:dim 
s as string
while not rs.EOF
  s = rs.Field("comer").stringValue
  s = DefineEncoding(s, Encodings.UTF8)
  txt1.appendtext s + endofline
  rs.MoveNext
wendCode:  txttitle.text = rs.Field("title").stringValue
  txtdate.text = rs.Field("date").stringValue
  txttrack.text = rs.Field("track").stringValue
  txtdriver.text = rs.Field("driver").stringValue
Also how would I add it to the followingCode:  dr.column("date") = 
trim(txtdate.text)
  dr.column("event") = trim(txtevent.text)
  dr.column("class") = trim(txtclass.text)
  dr.column("club") = trim(txtclub.text)

Thanks Shane      
_________________
Thanks to any and all who can help with my limited knowledge of Real Studio.
54YO Kart Racer from Sydney Australia
Real Studio 2010r5.1 Win 7  
                             Top                 timhare          Post subject: 
Re: Invalid CharactersPosted: Sat Mar 19, 2011 2:31 am                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 9490
Location: Portland, OR  USA                S.Rampling wrote:Code:  
txttitle.text = rs.Field("title").stringValue
  txtdate.text = rs.Field("date").stringValue
  txttrack.text = rs.Field("track").stringValue
  txtdriver.text = rs.Field("driver").stringValue

Adjust each line like
Code: txtttitle.text = DefineEncoding(rs.Field("title").stringvalue, 
encodings.UTF8)
etc.


Quote:Also how would I add it to the followingCode:  dr.column("date") = 
trim(txtdate.text)
  dr.column("event") = trim(txtevent.text)
  dr.column("class") = trim(txtclass.text)
  dr.column("club") = trim(txtclub.text)

There's no need to do anything here.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 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