Re: tabs as delimiters

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59577
interpreted = N
texte = Thanks Brian. Here's the code: = a real, typed tab [!]knit together address [/!] **Note [rnk_1] is blank in this example [text]makeaddress=[rnk_1][rnk_2][rnk_3][rnk_4][rnk_5][/text] [!]stick it in the db [/!] [replace db=[db]&eqcatdatarq=settings]rnk=[makeaddress][/replace] [!]pull it apart later [/!] [search db=[db]&eqcatdatarq=settings][founditems] [listwords delimiters=&tabs=T&words=[rnk]][text]rnk_[index]=[word][/text][/listwords] [text]eventvenue=[rnk_1][/text] [text]eventaddress=[rnk_2][/text] [text]eventcity=[rnk_3][/text] [text]eventstate=[rnk_4][/text] [text]eventzip=[rnk_5][/text] [/founditems][/search] [eventvenue]
[eventaddress]
[eventcity], [eventstate] [eventzip] ....which resolves to 123 MainAnycityNJ08055 (boxes where the tabs would be) <<--this should be blank 123 Main Anycity, NJ 08055 Everything was fine with the pipe character until I tested it with the first field empty, in case the venue was just an address, no restaurant name or anything. That's when I discovered that empty words in a listwords were just tossed away, and everything moved up a notch.. Now, with the tabs, the first slot gets filled with the whole string. I just can't see what's going on here. I'd rather not have to require an entry in every field. Terry Brian wrote: Tabs work fine - just type them in - but you could be running into mismanaged URL contexts or something. Can you show an example of code that doesn't work? - Brian On Oct 8, 2004, at 11:40 AM, Terry Wilson wrote: > When you use a tab as a delimiter in a string so you can split it > apart later via listwords, with blank entries intact: > > Is there a trick to putting the tab character into your code? Do you > just use the tab key on the keyboard, or what? I can't seem to get it > to work. > > Thanks, > Terry ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: tabs as delimiters NOT ( Rob Marquardt 2004)
  2. Re: tabs as delimiters NOT ( Terry Wilson 2004)
  3. Re: tabs as delimiters ( John Peacock 2004)
  4. Re: tabs as delimiters ( Terry Wilson 2004)
  5. Re: tabs as delimiters ( "WebDna @ Inkblot Media" 2004)
  6. Re: tabs as delimiters ( Terry Wilson 2004)
  7. Re: tabs as delimiters ( Brian Fries 2004)
  8. Re: tabs as delimiters ( Terry Wilson 2004)
  9. Re: tabs as delimiters ( Kenneth Grome 2004)
  10. Re: tabs as delimiters ( Terry Wilson 2004)
  11. Re: tabs as delimiters ( Kenneth Grome 2004)
  12. Re: tabs as delimiters ( Terry Wilson 2004)
  13. Re: tabs as delimiters ( Brian Fries 2004)
  14. tabs as delimiters ( Terry Wilson 2004)
Thanks Brian. Here's the code: = a real, typed tab [!]knit together address [/!] **Note [rnk_1] is blank in this example [text]makeaddress=[rnk_1][rnk_2][rnk_3][rnk_4][rnk_5][/text] [!]stick it in the db [/!] [replace db=[db]&eqcatdatarq=settings]rnk=[makeaddress][/replace] [!]pull it apart later [/!] [search db=[db]&eqcatdatarq=settings][founditems] [listwords delimiters=&tabs=T&words=[rnk]][text]rnk_[index]=[word][/text][/listwords] [text]eventvenue=[rnk_1][/text] [text]eventaddress=[rnk_2][/text] [text]eventcity=[rnk_3][/text] [text]eventstate=[rnk_4][/text] [text]eventzip=[rnk_5][/text] [/founditems][/search] [eventvenue]
[eventaddress]
[eventcity], [eventstate] [eventzip] ....which resolves to 123 MainAnycityNJ08055 (boxes where the tabs would be) <<--this should be blank 123 Main Anycity, NJ 08055 Everything was fine with the pipe character until I tested it with the first field empty, in case the venue was just an address, no restaurant name or anything. That's when I discovered that empty words in a listwords were just tossed away, and everything moved up a notch.. Now, with the tabs, the first slot gets filled with the whole string. I just can't see what's going on here. I'd rather not have to require an entry in every field. Terry Brian wrote: Tabs work fine - just type them in - but you could be running into mismanaged URL contexts or something. Can you show an example of code that doesn't work? - Brian On Oct 8, 2004, at 11:40 AM, Terry Wilson wrote: > When you use a tab as a delimiter in a string so you can split it > apart later via listwords, with blank entries intact: > > Is there a trick to putting the tab character into your code? Do you > just use the tab key on the keyboard, or what? I can't seem to get it > to work. > > Thanks, > Terry ------------------------------------------------------------- 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://webdna.smithmicro.com/ Terry Wilson

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:

Appending current [date] to a database (1997) [url] link (1998) Mondo amounts of Mail [long] (1999) Help! WebCat2 bug (1997) Help! WebCat2 bug (1997) expired beta (1997) WCS Newbie question (1997) Support ?? (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) New Cart No. on same page (2003) Why are some admin pages not encrypted? (2000) Tags not being Interpreted-Resending (1999) Trouble Searching (1999) Add (1998) PSC recommends what date format yr 2000??? (1997) WebDNA - fun to compare (2005) [WebDNA] Sorting questions (2009) Fun with dates (1997) PIXO (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997)