Re: Force leading zeros

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17961
interpreted = N
texte = >>[Format 10.2f]99.5[/Format] yields >> >>| 99.50| (10 wide, 2 after the decimal) >> >>Whats I would like the 99.50 to really look like is 000099.50, forcing the >>leading zeros of the number value. Have I missed a tag somewhere that >>would allow me to do this? > >You could use [convertchars db=spaceToZero.db] with a custom >spaceToZero.db database that converts spaces to zeros, that ought to do >it ... :)Dah..yep that will work, thanks Ken=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: Force leading zeros (Gary Richter 1998)
  2. Re: Force leading zeros (Kenneth Grome 1998)
  3. Force leading zeros (Gary Richter 1998)
>>[Format 10.2f]99.5[/Format] yields >> >>| 99.50| (10 wide, 2 after the decimal) >> >>Whats I would like the 99.50 to really look like is 000099.50, forcing the >>leading zeros of the number value. Have I missed a tag somewhere that >>would allow me to do this? > >You could use [convertchars db=spaceToZero.db] with a custom >spaceToZero.db database that converts spaces to zeros, that ought to do >it ... :)Dah..yep that will work, thanks Ken=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Gary Richter

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:

Re:Has this happened to you? (1997) [WebDNA] Does anyone have a whois/domain management tool in WebDNA? (2009) Credit card types (1997) testing testing 1.2.3 (2004) [WebDNA] test email (2014) WebCat2 - Getting to the browser's username/password data (1997) date formatting for CC card expiration date check (1998) RE: Error -108 (1997) my price won't move (1997) Cart Template (1997) Multiple adding (1997) RE: Sorting error (1997) [sendmail] and [formvariables] (1997) WebCatalog Plug-in for Webstar. (1997) WebCatalog can't find database (1997) Reversed words (1997) New WebDNA Forum Solution (in development) (2003) AJAX with WebDNA (2006) Multiple catalog databases and showcart (1997) [CreateDate] tag? (1998)