Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Trimimg Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trimimg Question

 Post Reply Post Reply
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: Trimimg Question
    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.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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)%>
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.