Results 1 to 2 of 2

Thread: force textBox control to NOT truncate a string when encountering a null chr

  1. #1
    Guest

    Post

    when we have a null character in the middle of a string, the textbox thinks it is the end of it; how can we force a textbox control to not do that ?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    If you have VB6 you can do

    Text1 = Replace(strMyText, vbNullChar, " ")

    If you don't have VB6 then use the InStr function and loop through the string looking for and replacing vbNullChar.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width