Re: Strange database format import

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27780
interpreted = N
texte = On 2/17/00 11:29 pm, Dennis J. Bonsall, Jr. so noted...>WebCat seems to do okay with it up until a point. The database is a >comma-delimited database, and the first several columns are denoted by >quotes and seperated by commas. Even when it gets to a point where >commas appear within the quotes, WebCat does not have a problem. But, >when it gets to the last several colums of the database, which have no >quotes, and are separated only by commas, WebCat chokes on the >database. Here is an entry from within this database: > >CANADA,01/01/00 - 12/31/00,2-A,SME,Wool Suits, >M&B,5016780,20330,0.40524,0.064045,0.06754,0.,01/13/00The file is *close* to being quote/comma delimited, until you get to the last part. As long as this inconsistent format is consistent (quote/comma at the beginning, numbers with commas at the end) you can do a replace in BBEdit.Grep pattern to search for: ([\d\.]),([\d\.])and to replace with: \1,\2Then, to finish off the last item, You'll need to search for \r and replace with \r throughout.Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Re[2]: Strange database format import (Rob Marquardt 2000)
  2. Re[2]: Strange database format import (jpeacock@univpress.com 2000)
  3. Re: Strange database format import (Rob Marquardt 2000)
  4. Re: Strange database format import (Rob Marquardt 2000)
  5. Re: Strange database format import (jpeacock@univpress.com 2000)
  6. Strange database format import (Dennis J. Bonsall, Jr. 2000)
On 2/17/00 11:29 pm, Dennis J. Bonsall, Jr. so noted...>WebCat seems to do okay with it up until a point. The database is a >comma-delimited database, and the first several columns are denoted by >quotes and seperated by commas. Even when it gets to a point where >commas appear within the quotes, WebCat does not have a problem. But, >when it gets to the last several colums of the database, which have no >quotes, and are separated only by commas, WebCat chokes on the >database. Here is an entry from within this database: > >CANADA,01/01/00 - 12/31/00,2-A,SME,Wool Suits, >M&B,5016780,20330,0.40524,0.064045,0.06754,0.,01/13/00The file is *close* to being quote/comma delimited, until you get to the last part. As long as this inconsistent format is consistent (quote/comma at the beginning, numbers with commas at the end) you can do a replace in BBEdit.Grep pattern to search for: ([\d\.]),([\d\.])and to replace with: \1,\2Then, to finish off the last item, You'll need to search for \r and replace with \r throughout.Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Rob Marquardt

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:

help on brickwalls (2003) WebCat2: Items xx to xx shown, etc. (1997) WebCatalog and WebTen (1997) RE: [WebDNA] RE: tcp connect to check domain names (2009) problems with WebCat-Plugin (1997) How do I pass [cart] when user clicks back (2000) problems with 2 tags (1997) cookie based login process (2004) Browsername (1998) WebCat hosting providers? (1997) Multithreading of [replace] (1999) WebCat2final1 crashes (1997) Download URL & access on the fly ? (1997) DreamWeaver Extensions (2000) [username][password] not showing up! HELP! (1999) Extended [ConvertChars] (1997) Suggestions for Topics to be covered in an Advanced (1998) WebCat2: multiple currency support (1997) Re:2nd WebCatalog2 Feature Request (1996) [WebDNA] Version 7 Config problem (2011)