macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: Removing number of characters from end of string

Subject: Re: Removing number of characters from end of string
From: Dooza
Date: Tue, 23 Sep 2008 11:13:53 +0100
Newsgroups: macromedia.dreamweaver.appdev


Andy wrote:
Hi all....
Dooza very kindly helped me with trimming a string in an earlier post, but now i want to remove the last four characters from a string. I really should know how to do this and will have to do some bedtime reading :-|

But, for now, could someone help!

Hi Andy,
Try something like this:
<%
myStr = "this is my really long string"
Response.Write(LEFT(myStr,LEN(myStr) -4))
%>

Dooza

<Prev in Thread] Current Thread [Next in Thread>