|
-
Apr 6th, 2000, 01:06 AM
#1
Thread Starter
New Member
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
-
Apr 6th, 2000, 01:39 AM
#2
Hyperactive Member
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.
-
Apr 6th, 2000, 02:03 AM
#3
Member
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]
-
Apr 6th, 2000, 02:06 AM
#4
transcendental analytic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|