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:
>>[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:
Intermitent problem using [referrer] (1997)
It just Does't add up!!! (1997)
Still can't upgrade users.db to 2.1.1 (1998)
[WebDNA] Sorting -- Dealing with Blanks (2008)
Running _every_ page through WebCat ? (1997)
international time (1997)
[INCLUDE] Limitations (1998)
more info on [setlineitems] (1997)
includes and cart numbers (1997)
RE: [WebDNA] db admin tool (2008)
two unique banners on one page (1997)
Another question (1997)
passing large amount of text in post form (2005)
Tax and Shipping Examples (1997)
max page views Mac can handle (1999)
decrypt trouble - solved (2006)
WebCat2: multiple currency support (1997)
select multiple 2 more cents (1997)
Cookies (1999)
WebCatalog2 Feature Feedback (1996)