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:
Database (2002)
Ok here is a question? (1997)
emailer settings and control questions (1997)
[OT] Kerio Mailserver (2003)
Update DB (2001)
flushdatabases (1997)
Problems appending to database (1997)
Interesting speed comparison .. (2003)
Micro-managing External Links (2006)
Exclamation point (1997)
WebDNA Intranet Edition release (2002)
problems with 2 tags (1997)
HomePage Caution (1997)
New WebDNA Solutions ... (1997)
Updating a database once per day - An example (1998)
OT: Flash developer needed (2007)
[WebDNA] Acceleratin Search / Index Performance in a Formum Service (2013)
OT: Adjusting Pic Sizes etc (2002)
[Webcat 2]Next (1997)
mySQL or MS SQL (2000)