Ask a Question related to ASP, Design and Development.
-
Christopher Brandsdal #1
trim string
How do i cut the last 4 characters in a string?
I know how to cut the 4 first, but i need to cut the last!
I have a image name like testimage.gif and I want to cut away .gif
Thanks
Christopher
Christopher Brandsdal Guest
-
trim function
Hi there, does any know how i can do a 'trim on canvas' sort of function. If my canvas is bigger than my draw/animation etc, then how do i shrink... -
Trim problem
Hi, i have another complex problem i cannot figure out. I have a string called #file_name#. The string's value is a filepath and file name of a... -
Need to Trim value in a List
I have a list that retrieves documents in a directory. <!--- Pack Directory ---> <cfdirectory action='list' directory='C:\TNS_Docs\EXCEL_PACKS'... -
Dynamic Text and Trim
What exactly does the trim - right option do when selecting dynamic text from a database field? I used the option and Dreamweaver changed the code... -
Export To Layers AND Trim?
Export to layers made my life a whole lot easier but I'm left with files that are as large as the original psd. I run a batch to trim afterwards but... -
Ray at #2
Re: trim string
If you just want to cut away the last four, use:
TheString = Left(TheString, Len(TheString) - 4)
If you want to get rid of the file extension, here is one of many ways:
TheString = Left(TheString, InStrRev(TheString, ".") - 1)
Ray at work
"Christopher Brandsdal" <christopherwb@c2i.net> wrote in message
news:%23Bh%23UM2VDHA.1832@TK2MSFTNGP09.phx.gbl...> How do i cut the last 4 characters in a string?
> I know how to cut the 4 first, but i need to cut the last!
> I have a image name like testimage.gif and I want to cut away .gif
>
>
>
> Thanks
> Christopher
>
>
Ray at Guest
-
Evertjan. #3
Re: trim string
Christopher Brandsdal wrote on 31 jul 2003 in
microsoft.public.inetserver.asp.general:vbscript:> How do i cut the last 4 characters in a string?
> I know how to cut the 4 first, but i need to cut the last!
> I have a image name like testimage.gif and I want to cut away .gif
s = left(s,len(s)-4)
jscript:
s = s.substring(0,s.length-4)
not tested
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
Christopher Brandsdal #4
Re: trim string
Thank's to both of you!
"Evertjan." <exjxw.hannivoort@interxnl.net> skrev i melding
news:Xns93C99A8931991eejj99@194.109.133.29...> Christopher Brandsdal wrote on 31 jul 2003 in
> microsoft.public.inetserver.asp.general:>> > How do i cut the last 4 characters in a string?
> > I know how to cut the 4 first, but i need to cut the last!
> > I have a image name like testimage.gif and I want to cut away .gif
> vbscript:
>
> s = left(s,len(s)-4)
>
> jscript:
>
> s = s.substring(0,s.length-4)
>
> not tested
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)
Christopher Brandsdal Guest



Reply With Quote

