Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in ASP only
Search
Advanced Search
Forums
Mark Channels Read
Member List
Calendar
Today's Posts
Home
Forum
Utveckling
Webbutveckling
ASP
jag vill ha 01 inte 1
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
voigtann1
Forumvärd
Join Date:
2001-06-14
Posts:
8810
Share
Post
#1
jag vill ha 01 inte 1
2002-04-15, 16:27
Jag håller på med en loop sak den ska loopa från 1 till 10
där jag vill ha:
01.
02.
03.
osv
till 10:
10.
måste man göra detta med en IF sats?
"det går inte att lära en gammal norrlänning byta namn på irc" - gammalt kinesiskt uttryck
icaaq
Medlem
Join Date:
2000-10-01
Posts:
4910
Share
Post
#2
2002-04-15, 16:37
[kod]
Dim i
i = 0
Do
i = i -- 1
Response.Write Right("0" & i, 2)
Loop Until i = 10
[/kod]
When I
work
I have lot's of fun. vi söker
folk
,
www.icaaq.com
,
twitter
mv icaaq
Comment
Post
Cancel
Patrik_N
Medlem
Join Date:
2002-04-14
Posts:
7
Share
Post
#3
2002-04-16, 08:54
Hej!
Så här ser min variant ut:
[KOD]
'Convert number smaller than 10 to format 01, 02 etc.'
If Len(myValue)=1 Then
myValue="0" & myValue
End if
[/KOD]
MvH
Patrik
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment