CountChars

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59586
interpreted = N
texte = Hi everyone. I have a system that, as the result of some changes and updates, is dealing with two different SKU lengths. One has 7 digits, the other has 10. For the most part it makes no difference. However, there is a feature I need to program that will need to assess the number of digits in the SKU so that those with 7 digits can be handled differently than those with 10. When I use [countchars][sku][/countchars] it only gives me "5" (the number of characters in [sku]). It doesn't actually INTERPRET the [sku] field before counting the characters. And no, using the [interpret] tag didn't help me either. Clearly, I'm missing something ridiculously simple. Anyone know what that might be? I'm using 4.5.1 on OS X. Thanks, ----- Patrick Junkroski ------------------------------------------------------------- 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: CountChars ( Patrick J. 2004)
  2. Re: CountChars ( "WebDna @ Inkblot Media" 2004)
  3. Re: CountChars ( Patrick J. 2004)
  4. Re: CountChars ( "Brian Boegershausen" 2004)
  5. CountChars ( Patrick J. 2004)
  6. Re: ShowIf & CountChars (John Butler 2000)
  7. Re: ShowIf & CountChars (Anup Setty 2000)
  8. Re: ShowIf & CountChars (Mark Derrick 2000)
  9. ShowIf & CountChars (John's Lists 2000)
Hi everyone. I have a system that, as the result of some changes and updates, is dealing with two different SKU lengths. One has 7 digits, the other has 10. For the most part it makes no difference. However, there is a feature I need to program that will need to assess the number of digits in the SKU so that those with 7 digits can be handled differently than those with 10. When I use [countchars][sku][/countchars] it only gives me "5" (the number of characters in [sku]). It doesn't actually INTERPRET the [sku] field before counting the characters. And no, using the [interpret] tag didn't help me either. Clearly, I'm missing something ridiculously simple. Anyone know what that might be? I'm using 4.5.1 on OS X. Thanks, ----- Patrick Junkroski ------------------------------------------------------------- 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/ Patrick J.

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 [cart] file names (1997) Categorizing by data (2001) Emailer choke (1997) Nested tags count question (1997) process SSI (1998) Server Freeze (1998) turning every 5th line red (1999) Search for 20 finds 2000, 200 Why? (1997) Draft Manual, Tutorial, and more (1997) Date Calulation (1997) Webcat/Webmerchant (1998) WebCat2b13MacPlugin - [math][date][/math] problem (1997) using listfiles to build a database? (2000) Re:Gil's in the lead (1999) Three new problems ... (1997) Email Set-Up? (1997) Converting characters to numbers ... (1997) Help name our technology! (1997) Simple way to create unique SKU (1997) Browser Check for WebDNA compatability (1999)