[replaceChars] would be nice ...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14017
interpreted = N
texte = I've been trying to create a new admin function that allows me to close the specific databases while leaving the others open.Apparently this is impossible, because the [name] tag inside the [listdatabases] context uses colons (:) for the folder separators in its path names. But the [closedatabase] tag only recognizes URL-style path names which use slashes.What would be *really useful* here would be a new character formatting context that replaces matching character strings with something else. I think it would look something like this:[replaceChars find=:&replaceWith=/]folder:subfolder:sub-subfolder:databasefile.db[/replacetext ]which would result in:folder/subfolder/sub-subfolder/databasefile.dbThen the URL-style-only path format of the [closedatabase] tag would no longer be a problem, and we would also have a great new text formatting tool to use for 'other' purposes! Sincerely, Ken Grome WebDNA Solutions 808-737-6499 Associated Messages, from the most recent to the oldest:

    
  1. Re: [replaceChars] would be nice ... (Grant Hulbert 1997)
  2. Re: [replaceChars] would be nice ... (Kenneth Grome 1997)
  3. Re: [replaceChars] would be nice ... (Christer Olsson 1997)
  4. [replaceChars] would be nice ... (Kenneth Grome 1997)
I've been trying to create a new admin function that allows me to close the specific databases while leaving the others open.Apparently this is impossible, because the [name] tag inside the [listdatabases] context uses colons (:) for the folder separators in its path names. But the [closedatabase] tag only recognizes URL-style path names which use slashes.What would be *really useful* here would be a new character formatting context that replaces matching character strings with something else. I think it would look something like this:[replaceChars find=:&replaceWith=/]folder:subfolder:sub-subfolder:databasefile.db[/replacetext ]which would result in:folder/subfolder/sub-subfolder/databasefile.dbThen the URL-style-only path format of the [closedatabase] tag would no longer be a problem, and we would also have a great new text formatting tool to use for 'other' purposes! Sincerely, Ken Grome WebDNA Solutions 808-737-6499 Kenneth Grome

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:

First postarg not taking in $Commands (1997) Restricting templates from causing havoc (2000) Emailed problem (2000) Frames and WebCat (1997) IE Cache Problems... (1999) RE: [WebDNA] Rack Mount Server(s) Available (2009) What's New Date (2002) includes (2003) [WebDNA] Some code inside a large loops fail ... but why? (2010) Still online from NY (2003) Navigator 4.01 (1997) Every other record deleted (2005) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Just Testing (1997) Error -108 (1997) BBEdit and WebCatalog 2.0? (1997) Need relative path explanation (1997) Web Catalog vs. ICAT (1997) Emailer choke (1997) calculating tax rates, mail order solutions and version 2 (1997)