Re: Nesting format tags

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11642
interpreted = N
texte = Grant Hulbert wrote: > > >This may be a dumb question, but can you nest format tags? I was trying > >to create a line with a length of 1400 characters, with formatting > >inside that, using [format 1400s][format 10s]something[/format][format > >5s]something[/format]......[/format] where all the format tags inside > >the tag that was 1400s added up to 1400, but when I checked the file > >WebCat created, it was nowhere near the right length (way too short). I > >have tried it without the [format 1400s], which theorectically should be > >the same size, but that doesn't work either (too long). Any ideas? > > Sorry, we had to limit the format to a maximum of 255 characters. Anything beyond that gets chopped off at 255. We'll add it to the feature request database. > > In the meantime, you can format each individual subsection so that the total sum of lengths adds to 1400. Just remove the outer format tag, and make sure the inner ones add up to 1400.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?Thanks, John-- John S. Winningham WebWright Inc. john@webwrightinc.com http://www.webwrightinc.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)
Grant Hulbert wrote: > > >This may be a dumb question, but can you nest format tags? I was trying > >to create a line with a length of 1400 characters, with formatting > >inside that, using [format 1400s][format 10s]something[/format][format > >5s]something[/format]......[/format] where all the format tags inside > >the tag that was 1400s added up to 1400, but when I checked the file > >WebCat created, it was nowhere near the right length (way too short). I > >have tried it without the [format 1400s], which theorectically should be > >the same size, but that doesn't work either (too long). Any ideas? > > Sorry, we had to limit the format to a maximum of 255 characters. Anything beyond that gets chopped off at 255. We'll add it to the feature request database. > > In the meantime, you can format each individual subsection so that the total sum of lengths adds to 1400. Just remove the outer format tag, and make sure the inner ones add up to 1400.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?Thanks, John-- John S. Winningham WebWright Inc. john@webwrightinc.com http://www.webwrightinc.com/ John S. Winningham

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:

setitems, one more thing (1997) Dreamweaver and WebDNA (2003) can WC render sites out? (1997) RE:math context ignores date prefs? (1998) Heads up, cookies *may* be outlawed in Europe (2001) Best way to handle 404 errors with WebDNA and Web* V (2003) Kudos (1998) lookups or math? (1998) WebCat2 beta 11 - new prefs ... (1997) [ot] Any One Want A WebDNA Billing Program? (2003) Field Totals (2004) Webten + Webcat running smooth (1998) Show items based on login Password (2003) Mac Vs WindowsNT (1997) Database Updates (1997) Sorry WebDNA server not running ????? (2002) Re:Signal Raised (1997) Answer: WebDelivery downloads alias, not original ? (1997) WebCatalog Hosting (1996) protect tag on NT IIS (1997)