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

Searching for all records (1998) [encrypt] blues.... (2000) WYSIWYG HTML editor for use in browser (2001) Sku numbers (1997) [WebDNA] StandardConversions.db (2016) WC Database Format (1997) Alphonse MacDonald/DC/IPSW is out of the office. (2003) WebCat2 beta 11 - new prefs ... (1997) RE: Missing contexts on NT (1997) question: back button prevention (1997) WebCat b13 CGI -shownext- (1997) New Guestbook Source (1997) Incompatibility with WebCat 3 templates ... (2000) Support ?? (1997) Re:Emailer and encryption (1997) What am I doing wrong? (2000) Further on formula.db failure to calculate shipCost (1997) Version issue? (2004) First postarg not taking in $Commands (1997) [WebDNA] [convertchars] and ascii problem [solved] (2010)