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

Loss in Form (1998) Webcat/Webmerchant part II (1998) The code, one more time. (2003) [WebDNA] ONLY the FIRST continuous run of numeric chars? (2008) Browser Reloads and AddlineItem (1997) Latest WebCat release version (1998) Databases going to sleep (1998) (no subject) (1997) Re2: Calculating multiple shipping... (1997) What does this error mean? (2000) [WebDNA] Dead line Time Math (2017) Artwork (1997) WebCat2 - Getting to the browser's username/password data (1997) Plaintext Email Attachment (2001) Interfacing WC with mail server (1998) iTools WebDNA module keeps crashing (2006) sorting and summarizing (1998) Re1000001: Setting up shop (1997) Date search and sendmail (1997) Don't tick me off :) [elaspedtime] (1997)