Re: Removing Space Characters

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22780
interpreted = N
texte = >is there a WEBDNA command to remove space characters from a given field?Yes, look at [ConvertChars] with a custom character conversion database.>I'm generating html pages with a [writefile] command, and I'm using a >[companyname] field for the name of the html page, but the only problem I >seem to be having now is spaces , like when it generates a page say for >AAA Construction is there a way to make it write the file as >AAAconstruction.html (instead of AAA Construction.html)....and does any >one know if there is a limit to the number of characters that can be in the >html filename generated by webCat?I don't see why spaces are bad in filenames, because you just use [URL]AAA Construction[/URL] to generate a filename AAA%20Contstruction that works OK in a HREF URL. The %20 gets converted back to a space automatically by the server.The limit of filename lengths is 31 characters for MacOS and 255 characters for NTTechnical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Removing Space Characters (Talklist 1999)
  2. Re: Removing Space Characters (PCS Technical Support 1999)
>is there a WEBDNA command to remove space characters from a given field?Yes, look at [convertchars] with a custom character conversion database.>I'm generating html pages with a [writefile] command, and I'm using a >[companyname] field for the name of the html page, but the only problem I >seem to be having now is spaces , like when it generates a page say for >AAA Construction is there a way to make it write the file as >AAAconstruction.html (instead of AAA Construction.html)....and does any >one know if there is a limit to the number of characters that can be in the >html filename generated by webCat?I don't see why spaces are bad in filenames, because you just use [url]AAA Construction[/URL] to generate a filename AAA%20Contstruction that works OK in a HREF URL. The %20 gets converted back to a space automatically by the server.The limit of filename lengths is 31 characters for MacOS and 255 characters for NTTechnical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Extended [ConvertChars] (1997) PCS Frames (1997) [WebDNA] Different responses for the same commands ... (2011) Plugin or CGI or both (1997) Another question about credit cards (1997) WebCat2 several catalogs? (1997) Can't use old cart file (was One more try) (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) OT: SSL Certs (2005) [WebDNA] Hmmm ... (2008) DON'T use old cart file! (1997) Problems getting parameters passed into email. (1997) Summ=T Problem (1997) Date problems-more (1997) different show next (1997) Sku numbers (1997) Quantity discount on some items? (2000) form data submission gets truncated (1997) transferring values (1998)