Re: Nesting format tags

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11644
interpreted = N
texte = >Thanks for the info. I've got one other question then. Since format is >limited to 255 characters, how can I format the output of [lineitems] to >where it has a length of 555 characters? Currently I have it as: > >[format 555s][lineItems][format 12s][sku][/format][format >10s][textB][/format][format 5s][quantity][/format][format >10s][price][/format][/lineItems][/format] > >But, I know this doesn't work now. Logic would tell me that I can't >split it up with say [format255s][lineitems]...[/format][format >255s][lineitems]...[/format]. Is this the case? What else can I do?No, you can't do the imperfect nesting in your example.I'm not sure if your intent is to reduce really long output down to 555, or expand really small output up to 555. If you're trying to just stick a bunch of trailing spaces to pad it out to 555, then try[format 255s][lineitems]...[/lineItems][/format][format 300s] [/format]That last 300s will pad a bunch of spaces after the first 255It seems like no matter what limit we pick, someone wants one more!Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Nesting format tags (Grant Hulbert 1997)
  2. Re: Nesting format tags (John S. Winningham 1997)
  3. Re: Nesting format tags (Grant Hulbert 1997)
  4. Re: Nesting format tags (John S. Winningham 1997)
  5. Re: Nesting format tags (Kenneth Grome 1997)
  6. Re: Nesting format tags (Grant Hulbert 1997)
  7. Nesting format tags (John S. Winningham 1997)
>Thanks for the info. I've got one other question then. Since format is >limited to 255 characters, how can I format the output of [lineitems] to >where it has a length of 555 characters? Currently I have it as: > >[format 555s][lineitems][format 12s][sku][/format][format >10s][textB][/format][format 5s][quantity][/format][format >10s][price][/format][/lineItems][/format] > >But, I know this doesn't work now. Logic would tell me that I can't >split it up with say [format255s][lineitems]...[/format][format >255s][lineitems]...[/format]. Is this the case? What else can I do?No, you can't do the imperfect nesting in your example.I'm not sure if your intent is to reduce really long output down to 555, or expand really small output up to 555. If you're trying to just stick a bunch of trailing spaces to pad it out to 555, then try[format 255s][lineitems]...[/lineItems][/format][format 300s] [/format]That last 300s will pad a bunch of spaces after the first 255It seems like no matter what limit we pick, someone wants one more!Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Make sure I understand this??? (1997) Another issue with [Date format] (1998) Preventing code execution (2003) Re:Emailer and encryption (1997) tracking no. of downloads (2006) Protect vs Authenicate (1997) WebMerchant Problem (1999) Slow NT mail. (2000) email database file (2005) [include] (1998) WebCat chatroom (1997) New command suggestion (was Modifying databases manually) (1997) PCS Frames (1997) WCf2 and nested tags (1997) Forms Search Questions (1997) Q: for those who use Cookies for sessions? (2004) & in Lookups (1997) Help name our technology! (1997) Max Record length restated as maybe bug (1997)