[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:

docs for WebCatalog2 (1997) oops private message leaked into talk list (1997) back button loses cart (2000) WebCat2b13MacPlugin - [math][date][/math] problem (1997) WC 2.0 frames feature (1997) WebDNA on Intel Mac (2006) Header values are not accepted (1998) thread discussion solution (2000) WebCat2: Items xx to xx shown, etc. (1997) WebDNA Codes in Secure Mode (1997) ReadDateFormat (1998) [ConvertChars] problem (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Secure Web Server (1999) problems with WebCat-Plugin () WebCatalog can't find database (1997) customizing the color of user's pages (1997) update on wn searching (1997) RE: Adding a product from another site (1997) multiple credit card merchant accounts/processors (1997)