How to get string special characters


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to get string special characters

  1. #1
    Join Date
    Feb 2007
    Location
    Arizona
    Posts
    15

    How to get string special characters

    I'm trying to get special characters from a text box object. With a standard text box I get nothing but simple text. With a RichText box I can at least get the string delimiter (vbCr vbLF) which I don't need. If, however, I enter a string like "ABC^L" where ^L is Ctrl-L (octal 12 or 0C hex), the ^L character is not in the buffer returned to me. All I get is the ABCvbCr-vbLF. I guess the system "thinks" it is doing me a favor striping off useless characters. Problem is they aren't useless to me. Any suggestions?

  2. #2
    Join Date
    Nov 2013
    Posts
    1
    Hello There. I discovered your weblog using msn. That is a really well written article. I will be sure to bookmark it and return to read extra of your useful info. Thank you for the post. I will certainly return.



    **Links removed by Site Administrator so it doesn't look like you're spamming us. Please don't post them again.**

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Since you seem to have had good luck with vbCrLf why not extend the use of the VB keycodes and rather than looking for ^, look for vbKeyControl which is the VB keycode for the Control key.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 1
    Last Post: 07-14-2009, 08:07 AM
  2. Checking string for special characters
    By Laurel in forum VB Classic
    Replies: 4
    Last Post: 06-23-2004, 10:45 PM
  3. Removing special characters from String
    By jfstarr in forum Java
    Replies: 1
    Last Post: 03-16-2003, 01:35 PM
  4. special characters in XML
    By marlene leach in forum XML
    Replies: 1
    Last Post: 08-09-2001, 05:31 PM
  5. special characters in XSL
    By barker in forum XML
    Replies: 1
    Last Post: 04-27-2001, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center