Jun 4, 2003 #1 S 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.
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.
Jun 4, 2003 #2 a_jam_sandwich Well-known member Joined Dec 10, 2002 Messages 367 Location Uk Trim return the varible with spaces removed try Code: Dim trimmedText = Trim(" sdkhsdhkfhsd ") Msgbox(trimmedText) Andy
Trim return the varible with spaces removed try Code: Dim trimmedText = Trim(" sdkhsdhkfhsd ") Msgbox(trimmedText) Andy
Jun 4, 2003 #3 S Skywalker Member Joined Apr 15, 2003 Messages 8 Hmm ok that wasnt exactly what i ment 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?
Hmm ok that wasnt exactly what i ment 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?
Jun 4, 2003 #4 Z zy_abc Well-known member Joined May 2, 2003 Messages 67 Code: Dim dblX As Double dblX = 10.444444444999998 dblX = CDbl(Format(dblX, "#.##")) MsgBox(dblX) Hope this helps.
Code: Dim dblX As Double dblX = 10.444444444999998 dblX = CDbl(Format(dblX, "#.##")) MsgBox(dblX) Hope this helps.
Jun 4, 2003 #5 S Skywalker Member Joined Apr 15, 2003 Messages 8 Ok thx, this worked out just perfect Thenk you for helping me out