trim function ????

Skywalker

Member
Joined
Apr 15, 2003
Messages
8
I want to trim the stuff that is in my variable, how do i do this?
I tryed to do this, trim(variable) but it doesnt work.

I would be please if somebody could help me with this one.
 
Trim return the varible with spaces removed try

Code:
Dim trimmedText = Trim("     sdkhsdhkfhsd    ")
Msgbox(trimmedText)

Andy
 
Hmm ok that wasnt exactly what i ment :D

I have a double with 9 decimals i want to breng it back to 2
example: from 10,44444444499999900111 to 10,44

How do i dou that?
 
Code:
Dim dblX As Double
dblX = 10.444444444999998
dblX = CDbl(Format(dblX, "#.##"))
MsgBox(dblX)

Hope this helps.
 
Back
Top