Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2008, 08:30 AM
Authorized User
 
Join Date: Apr 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default trim with ListFolderContents

I have employees placing jpeg files in a specific folder, and I am then using ListFolderContents to simply display those images through the web browser. works like a charm... BUT.... if an employee places a file that has white spaces in the file names, an "X" shows in the broswer.

Can the TRIM variable remove the spaces from the file name before it displays it at the browser level. I am not looking to remove the spaces in the actual file, but just at the browser level?

can this be done??

 
Old September 12th, 2008, 03:03 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

If you did get rid of the spaces, and if the filenames on the server still had the spaces in them, then the code would *never* work.

Anyway, the TRIM function (no way it is a "variable") only removes spaces at the ENDs of a string, never in the middle. REPLACE() could remove all spaces, but I still question if that is the right answer.

But the big question I have: What "ListFolderContents" component? A quick google finds at least 50 or 60 separate attempts to supply one. If you don't point us to a reference to what you are using, I doubt we can help.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i trim space using XSLT? Mitali XSLT 5 July 25th, 2008 03:15 PM
Trim MathLearner VB Databases Basics 2 May 16th, 2007 11:38 PM
How to trim strings ajit Javascript 4 June 20th, 2006 10:30 AM
String.trim() mrfox BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 January 8th, 2006 12:23 AM
Trim() NeoGeo ASP.NET 1.0 and 1.1 Basics 2 January 21st, 2004 11:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.