|
-
Jul 31st, 2002, 05:30 AM
#1
Thread Starter
PowerPoster
Is this alright....
Just wanted to check and see if this was alright to do
VB Code:
messagelogtxt.text = RTrim(messagelogtxt.Text)
Thanks in Advance.
-
Jul 31st, 2002, 05:36 AM
#2
Retired VBF Adm1nistrator
To right trim the contents of a textbox, yes.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 31st, 2002, 05:39 AM
#3
Hyperactive Member
hi,
perfectly fine
shoot some another question ......
regds,
ashay
-
Jul 31st, 2002, 05:43 AM
#4
Thread Starter
PowerPoster
Ok cool 
Thanks Guys.
I'll see if I can think up another dumb question for ya.
-
Jul 31st, 2002, 05:48 AM
#5
Hyperactive Member
hi,
wow....so u got more dumber ones too......
regds,
ashay
-
Jul 31st, 2002, 05:51 AM
#6
Thread Starter
PowerPoster
Ok I need an Icon to represent the Clearing of a Chat window. Something like an Eraser or a Pencil with an Eraser on the end.
It has to be 265 as its for a Toolbar.
Thanks in Advance.
-
Jul 31st, 2002, 05:53 AM
#7
messagelogtxt.text = RTrim(messagelogtxt.Text)
This coerces a string into a variant, right trims it and then coerces it back into a string. To avoid the data type coercion overhead use Rtrim$...
HTH,
Duncan
-
Jul 31st, 2002, 05:55 AM
#8
Retired VBF Adm1nistrator
Originally posted by Merrion
This coerces a string into a variant, right trims it and then coerces it back into a string. To avoid the data type coercion overhead use Rtrim$...
HTH,
Duncan
VB Code:
Private Sub Form_Load()
MsgBox TypeName(RTrim("arg "))
End Sub
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 31st, 2002, 05:57 AM
#9
Thread Starter
PowerPoster
Is "coerces a string into a variant" a good thing or a bad thing?
-
Jul 31st, 2002, 06:01 AM
#10
Retired VBF Adm1nistrator
Originally posted by Pc_Madness
Is "coerces a string into a variant" a good thing or a bad thing?
Its a bad thing.
Allowing VB to coerce things - nono.
And working with variants, unless you're delibrately doing it, then its a bad idea.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 31st, 2002, 06:02 AM
#11
Thread Starter
PowerPoster
Don't worry, I found a reasonable Eraser Icon.
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
|