Modifying order output

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11320
interpreted = N
texte = I have encountered a problem with formatting the order output to work with a client's order importer. The order format required by the importer uses spaces as padding for each field (i.e. the First Name field is 15 characters long, so if the name is only 4, then it needs 11 spaces for padding). I am using the [writefile] to write the order output, but since the length of the actual output can vary (i.e. the color could be 3 characters or 6 or 7) the file won't be of the proper length. Is there any way for WebCat to count the characters in an entry and add the appropriate number of spaces?John -- John S. Winningham WebWright Inc. john@webwrightinc.com http://www.webwrightinc.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Modifying order output (Grant Hulbert 1997)
  2. Modifying order output (John S. Winningham 1997)
I have encountered a problem with formatting the order output to work with a client's order importer. The order format required by the importer uses spaces as padding for each field (i.e. the First Name field is 15 characters long, so if the name is only 4, then it needs 11 spaces for padding). I am using the [writefile] to write the order output, but since the length of the actual output can vary (i.e. the color could be 3 characters or 6 or 7) the file won't be of the proper length. Is there any way for WebCat to count the characters in an entry and add the appropriate number of spaces?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:

Country & Ship-to address & other fields ? (1997) Db path (2004) [WebDNA] GREP Question (2009) listfiles-looking for slick solution (1997) Help name our technology! (1997) Re[2]: Strange database format import (2000) New Mac Emailer... (1997) Help name our technology! (1997) Separate SSL Server (1997) RE: MacFinder -- a new WebDNA web site (1998) MATH TIME (1997) WC 2.0 frames feature (1997) [countwords] (2002) Normalizing Dates and Phone numbers (2000) Summary search -- speed (1997) Renaming DB fields (2000) WebCat2b15MacPlugin - showing [math] (1997) RE: [WebDNA] Circumnavigate Browser Timeout On Lengthy WebDNA Operations (2014) download a file (2001) [OT] Don't have a mac to test on? (2004)