problom drawing string

clowns119

Member
Joined
Feb 17, 2005
Messages
8
Programming Experience
1-3
How would I draw and array of 24 numbers if I do not want to start numbering at 00 I want the first number to be 12 and last number to be 11

12 13 14 15 16 17 18... after 24 go to 01
 
This is a bit rough example but however it works

VB.NET:
 Dim i As Integer 
 
Dim myArray(24) As Integer
 
For i = 12 To myArray.GetUpperBound(0)
 
myArray(i) = i
 
MessageBox.Show(myArray(i))
 
If myArray(i) = 24 Then
 
While myArray(i) > 1
 
myArray(i) -= 1
 
MessageBox.Show(myArray(i))
 
End While
 
End If
 
Next

Cheers ;)
 
Your question is an odd one. If you have something specific like that then, obviously, you need to hard-code it. If you need a generic method of applying some condition then we need to know what that condition is. If you are simply asking "how do I display the numbers from 12 to 24 and then display the numbers from 00 to 11" then the answer is no different to displaying any series of numbers: start at the first and continue until you get to the last. If you have two separate series, as you do, then you do it twice. If you don't know ahead of time eactly where the division in the series will be, then that is a different story. You would have to tell us how the division is determined.
 
Back
Top