Re: [convertchars] Problem

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30985
interpreted = N
texte = >OK so you want to take out the blank spaces and put in plus >signs. Another great way to do this is with the ListWords >command.Listwords is a context, not a command. This may sound like a picky comment, but there are *substantial* differences between contexts and commands in the webdna language, and it is important to recognize these differences and to refer to each webdna feature properly ... :) >You could list your words and insert plus signs >inbetween them. Hide the first plus sign by checking to see >if the index is one. > >This would be another way to solve your problem. > >something like > >[listwords words=[street]][hideif [index]=1]+[/hideif][word][/listwords]Interesting concept, but this example won't work properly every time unless you use the optional 'delimiters' parameter and set it to the space character. If you use it the way it is shown here, you will get the wrong results if the [street] value has any default wordbreak character in it other than a space. ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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: [convertchars] problem... (John Peacock 2000)
  2. Re: [convertchars] problem... (Kenneth Grome 2000)
  3. Re: [convertchars] problem... (John Peacock 2000)
  4. Re: [convertchars] problem... (Claus Lundholm 2000)
  5. Re: [convertchars] problem... (Peter Ostry 2000)
  6. [convertchars] problem... (Claus Lundholm 2000)
  7. Re: [convertchars] Problem (tech 2000)
  8. Re: [convertchars] Problem (tech 2000)
  9. Re: [convertchars] Problem (Kenneth Grome 2000)
  10. Re: [convertchars] Problem (Sue Booher 2000)
  11. Re: [convertchars] Problem (Nicolas Verhaeghe 2000)
  12. Re: [convertchars] Problem (Anup setty 2000)
  13. [convertchars] Problem (Sue Booher 2000)
  14. Re: [ConvertChars] problem (Grant Hulbert 1997)
  15. Re: [ConvertChars] problem (Jacques VERNAY 1997)
  16. Re: [ConvertChars] problem (Trevor Crist 1997)
  17. Re: [ConvertChars] problem (Kenneth Grome 1997)
  18. [ConvertChars] problem (Trevor Crist 1997)
  19. Re: [ConvertChars] problem (Grant Hulbert 1997)
>OK so you want to take out the blank spaces and put in plus >signs. Another great way to do this is with the ListWords >command.Listwords is a context, not a command. This may sound like a picky comment, but there are *substantial* differences between contexts and commands in the webdna language, and it is important to recognize these differences and to refer to each webdna feature properly ... :) >You could list your words and insert plus signs >inbetween them. Hide the first plus sign by checking to see >if the index is one. > >This would be another way to solve your problem. > >something like > >[listwords words=[street]][hideif [index]=1]+[/hideif][word][/listwords]Interesting concept, but this example won't work properly every time unless you use the optional 'delimiters' parameter and set it to the space character. If you use it the way it is shown here, you will get the wrong results if the [street] value has any default wordbreak character in it other than a space. ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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 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:

Need help with search title (1998) [OT] XML data to tab delimited database (2003) Using [redirect] in the middle of a page? (1999) WebCat2 - many [carts] on one template page? (1997) Smith Micro - no competition (2000) Simple way to create unique SKU (1997) Protecting webdelivery (1997) [Webcat 2]Next (1997) Where is the secure setting for text variables? (2003) Is someone's computer clock set wrong? (2000) Summing fields (1997) send mail problem? (1997) includes and cart numbers (1997) Standalone Testing (1998) Preloading code? (2002) More than one db with the same namn (was: WC2f3) (1997) HELP WITH DATES (1997) Cookies (1999) [SearchString] usage (1997) using showpage and showcart commands (1996)