Print Page | Close Window

trim() help

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=5560
Printed Date: 30 March 2026 at 9:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: trim() help
Posted By: Gullanian
Subject: trim() help
Date Posted: 05 September 2003 at 5:14pm

Hi guys!  I have a field in my code:

<input type="text" name="HREF2" size="40" maxlength="255" class="textbox" value="<%If blnLIUFoundKit = True then response.write (trim(rsCommon("HREF2")))%>">

And when I write out the value of blnLIUFoundKit it gives:

True

Yet it doesnt take the empty spaces off the start or end of the string.  When I do:

<%If blnLIUFoundKit = True then response.write (trim(rsCommon("HREF2")))%>

It works fine!  Whats going on?




Replies:
Posted By: Gullanian
Date Posted: 05 September 2003 at 5:18pm
It works fine on my PWS but not on my host!



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