Re: Nesting format tags
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11645
interpreted = N
texte = Grant Hulbert wrote:> > >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 255> > It seems like no matter what limit we pick, someone wants one more!> We're just too demanding, aren't we? Actually, what I have is a setnumber of fields for product information in an order form (so it importsinto the client's order fulfillment software), i.e. 15 records, eachwith a length of 37, so if a customer orders 15 items, all of the spaceswill be filled, but if they only order 1, then the remaining 14 recordspaces have to be filled with blank spaces. In other words, it has tobe 555 characters in length no matter what. John-- John S. WinninghamWebWright Inc.john@webwrightinc.comhttp://www.webwrightinc.com/
Associated Messages, from the most recent to the oldest:
Grant Hulbert wrote:> > >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 255> > It seems like no matter what limit we pick, someone wants one more!> We're just too demanding, aren't we? Actually, what I have is a setnumber of fields for product information in an order form (so it importsinto the client's order fulfillment software), i.e. 15 records, eachwith a length of 37, so if a customer orders 15 items, all of the spaceswill be filled, but if they only order 1, then the remaining 14 recordspaces have to be filled with blank spaces. In other words, it has tobe 555 characters in length no matter what. John-- John S. WinninghamWebWright Inc.john@webwrightinc.comhttp://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:
Enhancement Request for WebCatalog-NT (1996)
WebCatalog Hosting (1996)
RE: Automatic Forwarding using WebCat (1997)
[WebDNA] Screen Resolution - detection & redirect (2012)
How do I make this faster???? (2000)
[TIME] not working (2007)
RequiredFields notes ... (1997)
Converting characters to numbers ... (1997)
Country & Ship-to address & other fields ? (1997)
default value from Lookup (was Grant, please help me) (1997)
Multiple servers and Webcat (1998)
Taxable Shipping (2003)
RE: OK, here goes... (1997)
Removing [showif] makes a big difference in speed (1997)
listfiles-looking for slick solution (1997)
Unknown error: OrderNotCreated (1997)
Sendmail question [Newbie] (1999)
well... (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Calculate QTY (1998)