Re: Convert Chars Q
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35857
interpreted = N
texte = Thanks for the reply Joseph,Forgive me if I'm missing something, but how will your example convert anycomma's it finds to , for the append to the CSV database?Also, I figured this is what the ConvertChars was for anyways, as I'd haveto do a showif for each of the characters in my sr_convertchars.db. Ofcourse the main one that I'm concerned with is the comma.G.> At 7:54 PM 8/7/00, Gary J. Krockover wrote:> >Hi all,> >I have a client that has opted to have her products co-listed on> >StoreRunner.com. StoreRunner (SR) requires a CSV format of the databaseshe> >uses. I made a tpl that will get the information from her main catalogand> >do a price lookup to her other database and then compile it into a> >tab-delimited database. It works fine. I'm now trying to get fancy and> >instead of her having to change comma's in the database to another unused> >character, and then import that into Excel, clean up what needs to be &> >convert the file to a CSV & then open the CSV in BBEdit and change the> >unused characters to , -I'm trying to have this CSV database builder> >convert the comma's for her. The ConvertChars is cutting off all textafter> >it finds the To character though. Any help would be appreciated!Webcat>> Instead of doing it how you're doing it, wouldn't it be wasier to> test each field and if it contains a comma, then surround it in> quotes?>>> In otherwords... do whatever you need to do to get the fields of the> record you want to output. Then on the fields that might contain a> comma do something like this: (not testes)>> [showif [field1]^,]> [text]field1=[field1]]> [/showif]>>> Then do:>> [appendfile file=name.csv][field1],[field2], ..... [/append]>> Or am I missing something?-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Thanks for the reply Joseph,Forgive me if I'm missing something, but how will your example convert anycomma's it finds to , for the append to the CSV database?Also, I figured this is what the ConvertChars was for anyways, as I'd haveto do a showif for each of the characters in my sr_convertchars.db. Ofcourse the main one that I'm concerned with is the comma.G.> At 7:54 PM 8/7/00, Gary J. Krockover wrote:> >Hi all,> >I have a client that has opted to have her products co-listed on> >StoreRunner.com. StoreRunner (SR) requires a CSV format of the databaseshe> >uses. I made a tpl that will get the information from her main catalogand> >do a price lookup to her other database and then compile it into a> >tab-delimited database. It works fine. I'm now trying to get fancy and> >instead of her having to change comma's in the database to another unused> >character, and then import that into Excel, clean up what needs to be &> >convert the file to a CSV & then open the CSV in BBEdit and change the> >unused characters to , -I'm trying to have this CSV database builder> >convert the comma's for her. The ConvertChars is cutting off all textafter> >it finds the To character though. Any help would be appreciated!Webcat>> Instead of doing it how you're doing it, wouldn't it be wasier to> test each field and if it contains a comma, then surround it in> quotes?>>> In otherwords... do whatever you need to do to get the fields of the> record you want to output. Then on the fields that might contain a> comma do something like this: (not testes)>> [showif [field1]^,]> [text]field1=[field1]]> [/showif]>>> Then do:>> [appendfile file=name.csv][field1],[field2], ..... [/append]>> Or am I missing something?-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Gary J. Krockover
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:
RE: Include (1998)
Re1000002: Setting up shop (1997)
Using Applescript to process WebCatalog functions (1998)
[sendmail] questions... (1997)
RE: Custom error files (1998)
Converting characters to numbers ... (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
founditems / writefile (2005)
[WebDNA] Some code inside a large loops fail ... but why? (2010)
WebCatalog Upgrade Pricing? (1997)
Unexpected error (1997)
WebCat2 - Getting to the browser's username/password data (1997)
So what ya working on? (or have you completed?) (2004)
[WebDNA] WebDNA and MAMP/Apache (Mac) (2018)
truncating email part II (1997)
Seeking Better Display of results... (1997)
Re(2): SSL, WebSTAR, WebCatalog (1998)
ShipCost Data Base (1998)
REPOST: How do _you_ back up your db? (2000)
Encrypt/Decrypt (2007)