Re: many-to-one problem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17197
interpreted = N
texte = Hi Peter,I'm glad my suggestion got you started. Writing a temp db and using summ=T to search that db is just what I would have done. Since your application of this technique is not particularly demanding as far as time or resources, writing a temp db is a good solution.>BTW - I discovered some strange behavior: >[appendfile somefile]sometext[/appendfile] >does not put a carriage return at the end of the line, I have to >write it like this: >[appendfile somefile]sometext >[/appendfile] Appendfile and writefile are *supposed* to work like this. if you want a carriage return after the sometext, you have to put it there ... :)Some people get the [append] context confused with [appendfile] -- and they perform very different functions.1- The [append] context writes field values to an existing WebCat database file -- in the proper WebCat database format.2- The [appendfile] context appends EXACTLY what you type into the context -- nothing more and nothing less. Writefile does the same thing, it writes exactly what you enter into the [writefile] context.The only thing that gets changed inside an appendfile (or writefile or sendmail) context are the enclosed WebDNA tags, which are replaced *before* the text is appended. Everything else gets written exactly the way you type it. That's why careful formatting is very important when using appendfile, writefile and sendmail ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: many-to-one problem (Kenneth Grome 1998)
  2. Re: many-to-one problem (Peter Ostry 1998)
  3. Re: many-to-one problem (PCS Technical Support 1998)
  4. Re: many-to-one problem (Kenneth Grome 1998)
  5. Re: many-to-one problem (Peter Ostry 1998)
  6. Re: many-to-one problem (Kenneth Grome 1998)
  7. Re: many-to-one problem (Peter Ostry 1998)
  8. Re: many-to-one problem (Kenneth Grome 1998)
  9. Re: many-to-one problem (Peter Ostry 1998)
  10. Re: many-to-one problem (Kenneth Grome 1998)
  11. many-to-one problem (Peter Ostry 1998)
Hi Peter,I'm glad my suggestion got you started. Writing a temp db and using summ=T to search that db is just what I would have done. Since your application of this technique is not particularly demanding as far as time or resources, writing a temp db is a good solution.>BTW - I discovered some strange behavior: >[appendfile somefile]sometext[/appendfile] >does not put a carriage return at the end of the line, I have to >write it like this: >[appendfile somefile]sometext >[/appendfile] Appendfile and writefile are *supposed* to work like this. if you want a carriage return after the sometext, you have to put it there ... :)Some people get the [append] context confused with [appendfile] -- and they perform very different functions.1- The [append] context writes field values to an existing WebCat database file -- in the proper WebCat Database format.2- The [appendfile] context appends EXACTLY what you type into the context -- nothing more and nothing less. Writefile does the same thing, it writes exactly what you enter into the [writefile] context.The only thing that gets changed inside an appendfile (or writefile or sendmail) context are the enclosed WebDNA tags, which are replaced *before* the text is appended. Everything else gets written exactly the way you type it. That's why careful formatting is very important when using appendfile, writefile and sendmail ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

emailer (1997) New user...how do I create URLs from form fields? (2000) EditPlus 2 WebDNA cliptext (2002) Searching multiple Databases (1997) creator code (1997) serial number (1998) WebCat2_Mac RETURNs in .db (1997) Snake Bites (1997) 2nd WebCatalog2 Feature Request (1996) Hyperboard/bulletin board available (1998) WCS Newbie question (1997) Form and Context Searching -Hideif/Showif (2000) Looping control (1997) Me know logical no need (2002) Fwd: Problems with Webcatalog Plug-in (1997) [WebDNA] Barcode (2014) Interfacing WebMerchant to www.fedex.com (1997) 'does not contain' operator needed ... (1997) Problems with AOHell (1999) Re:E-Mailer (WebCatb15acgiMac) (1997)