| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
format variables
Hello everyone,
I'm trying to display the results from a query as 3 digits. The variable in the db is either 1, 2 or 3 digits long. I'd like it to always display 3 digits with leading zeros. Any advice would be greatly appreciated! This is the code that I'm working with. fpropnum should display as 3 digits. response.write ("<td>" & rs("fTracknum") & ("fpropnum") &"</td>") |
|
#2
|
||||
|
||||
|
you might be able to do it via the sql query, otherwise check the length of the variable and add zero's as needed
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > format variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|