Ask a Question related to ASP, Design and Development.
-
mario c #1
trimming a variable.
I need to trim a variable to have everything after 4 chars in a string.
IE:
var_temp = 200:16:1234567890
i want everything after 200: to be a variable.
I cannot use:
var_new = right(var_temp,14)
because the string is a different length everytime.
I just dont know this function. please help :D
Mario C
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
mario c Guest
-
trimming a string
I'm generating strings dynamically in my application, and they look something lie this: 0 0 0 435921014 0 0 0 0 What I want to do is trim off... -
trimming arcs/ellipses
I have some arc and ellipse geometrys that I need to trim but can not figure out how. The ellipse I had to draw way out from the end point to get my... -
trimming a file but got error?
when i trim a file, i have this error "Invalid null command." i can do it with root, with shell ksh. but when i am switch to other user, i get the... -
Trimming Whitespace
I have a movie that imports an avi file into a cast member through script. The avi file has lots of whitespace around it. Unfortunately, when... -
Trimming Blank Spaces in String
You can use the VB.NET function RTRIM. -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net "Temp" <tempmail@temp.com> wrote in... -
SPA #2
Re: trimming a variable.
Use the mid function in vbscript
Mid(string, start[, length])
var_string = mid(var_temp, 5)
If you know the length of how much you need to extract after the 4th
character, you can specify that too
HTH
SPA
"mario c" <philo_surfer_1981@yahoo.com> wrote in message
news:#yLqBu9TDHA.1740@TK2MSFTNGP12.phx.gbl...>
> I need to trim a variable to have everything after 4 chars in a string.
>
> IE:
>
> var_temp = 200:16:1234567890
>
> i want everything after 200: to be a variable.
>
> I cannot use:
>
> var_new = right(var_temp,14)
>
> because the string is a different length everytime.
> I just dont know this function. please help :D
>
> Mario C
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
SPA Guest
-
mario c #3
Re: trimming a variable.
Thanks that worked!
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
mario c Guest



Reply With Quote

