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

Location of Browser Info.txt file (1997) Question re: FlushDatabases (1997) Country & Ship-to address & other fields ? (1997) attn: smitmicro - cart limitation (2002) U&P IIS concept (1998) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) autosensing lanague selection (1997) ReturnRaw Returns (2000) WebCat Contest (1998) multi-paragraph fields (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Search results templates (1996) guest book problem (2000) Windows Install issue (2003) Multiple Merchant Accounts? (1997) PCS Frames (1997) WC 4.0 on OSX 10.0.4 problems (2001) Multiple catalog databases and showcart (1997) It finally happened ... (2003) Req: Array Tags Explained, simple and clear (2003)