New topic: How to create string constants that are control characters?
<http://forums.realsoftware.com/viewtopic.php?t=30512> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message guykuo Post subject: How to create string constants that are control characters?Posted: Fri Oct 16, 2009 2:25 am Joined: Mon Apr 02, 2007 5:51 pm Posts: 172 Is there is a way to enter string constants that are not normally keyboardable into the IDE? For instance, I often need to use chr(9) and like to refer to it as "tab". I currently do this by having a global string called CR and assign it the value of chr(13) in an open event. That does the job, but is messier than declaring a string constant and assigning it chr(9) in the IDE. I have not found a way to enter string constant values into the IDE other than ones that can be TYPED into the default value editbox. You can't enter a carriage return, tab, linefeed or other control code. I'm suspecting I have missed some simple way to do this, but I don't see an escape char sequence or a hexadecimal method in the LR that would allow this. BTW, I do NOT care about encodings for this issue, I simply would like to know if the IDE can add string constants to a module or method that is the equivalent of creating strings like.... dim cr as string = chr(13) dim tab as string = chr(9) Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- 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]
