Just wanted to check and see if this was alright to do
VB Code:
messagelogtxt.text = RTrim(messagelogtxt.Text)
Thanks in Advance.
Printable View
Just wanted to check and see if this was alright to do
VB Code:
messagelogtxt.text = RTrim(messagelogtxt.Text)
Thanks in Advance.
To right trim the contents of a textbox, yes.
hi,
perfectly fine :o
shoot some another question ......
regds,
ashay
Ok cool :D
Thanks Guys.
I'll see if I can think up another dumb question for ya.
hi,
wow....so u got more dumber ones too......:p
regds,
ashay
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. :D
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$...Quote:
messagelogtxt.text = RTrim(messagelogtxt.Text)
HTH,
Duncan
:confused:Quote:
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
Is "coerces a string into a variant" a good thing or a bad thing?
:confused:
Its a bad thing.Quote:
Originally posted by Pc_Madness
Is "coerces a string into a variant" a good thing or a bad thing?
:confused:
Allowing VB to coerce things - nono.
And working with variants, unless you're delibrately doing it, then its a bad idea.
Don't worry, I found a reasonable Eraser Icon. :)