Results 1 to 4 of 4

Thread: How to add text to a text box other than text1.text=text1.text+

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Location
    Ottsville, PA, USA
    Posts
    9
    Is there a better way to add text to a text box, other than
    saying:

    text1.text=text1.text + "whatever new text"

    I am logging RS232 info coming in, and don't like the
    delay I'm seeing from re-writing the entire text box.

    I figure there must be a more elegant way of just appending
    a new line of text to the bottom of the text box.

    Thank you.

    Phil Hall

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    Try storing all the text to a string variable, and when you know the function is done adding text, you can have Text1 equal the variable.
    Phobic

  3. #3
    Member
    Join Date
    Feb 2000
    Location
    Toronto, Canada
    Posts
    44
    Call the following function,
    NOTE: Inbuff is the data you want to add to Text1



    Sub HandleInput(inbuff As String)

    Text1.SelStart = Len(Text1.Text)

    Text1.SelText = inbuff

    End Sub

    [Edited by Sacred_knight on 04-06-2000 at 03:05 PM]

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You can put in your strings with sendkey into the textbox.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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