tag. Like this:[format 4.0f]1[/format][format 4.0f]11[/format][format 4.0f]111[/format][format 4.0f]1111[/format]The "Hello" example in the docs is clear that "s" is left justified.~joe-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:
At 11:52 AM +0100 7/30/04, Alan White wrote:>What on earth am I doing wrong here?>>[format 4s][ID][/format] - [myValue]>>I want this to return a number between 1 & 4 chars long but it isn't doing do.... I did the format as a string as it doesn't need formated with regards to thousands / numbers etc... I just want things to align nicely on my search results.>>Any help appreciated ... I know this one has to be easy and I am missing it :(Two things.In a format string "s" assumes alphanumeric characters and so the output is always left justified with spaces padded on the right. On the other hand, "f" assumes a numeric value and is right justified.Secondly, runs of spaces are stripped by browsers.You need to use "f" in your format string if [ID] is a number and you need to wrap the whole thing in
- Re: Stupid Format grrrrrrrr.... ( Alan White
2004) - Re: Stupid Format grrrrrrrr.... ( Joe D'Andrea
2004) - Stupid Format grrrrrrrr.... ( Alan White
2004) tag. Like this:[format 4.0f]1[/format][format 4.0f]11[/format][format 4.0f]111[/format][format 4.0f]1111[/format]The "Hello" example in the docs is clear that "s" is left justified.~joe-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Joe D'Andrea
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:
WC2.0 Memory Requirements (1997) Satistics (1999) hiding links (1999) possible, WebCat2.0 and checkboxes-restated (1997) Mac 2.1b2 speed (1997) form crasehes server (1997) Submit buttons not working.... (1999) [URL] around a [sendmail] recipient? (2000) RE: Error: template (1997) Credit Card not accepted (1998) fckeditor in Browswer html editor (2005) href name= link from dynamic URL possible? (1998) Requiring that certain fields be completed (1997) Date Time Oddness (1999) textarea data entry and display (2000) psst (1997) Template transformed itself into a database? (1998) WebCatalog2 Feature Feedback (1996) Hiding HTML and breaking the page (1997) WebDNA-Talk Digests (1997)