Print Page | Close Window

Trimimg Question

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14333
Printed Date: 30 March 2026 at 1:11pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Trimimg Question
Posted By: zMaestro
Subject: Trimimg Question
Date Posted: 20 March 2005 at 10:20am
I want to trim the last letter from a word, how can this be done?
 
for example how to trim Results to Result (without the s)
 
Thanks.



Replies:
Posted By: dj air
Date Posted: 20 March 2005 at 10:55am
strValue = Left(strValue), Len(strValue)-1)

is one way is it a spacfic letter ot number of cgharecters etc.

or just the last letter if end in s etc.


Posted By: zMaestro
Date Posted: 21 March 2005 at 6:04am
I'm getting this error
Expected end of statement
 
I have a QueryString named Results, my goal is to have it written in ASP without the last letter 's', i.e. Result.
 
Home.asp?Page=Results&Result=Data
 
I'm reading the value of the QueryString Page (which is Results)
and then i want to remove the s and write dynamically Result=<%=Request.QueryString(Result)%>


Posted By: zMaestro
Date Posted: 21 March 2005 at 6:14am
oh, it worked now

&<%=Left(Request("Results"), Len(Request("Results"))-1)%>=<%=Request(Left(Request("Results"), Len(Request("Results"))-1))%>
 
Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net