by Jeffry O'Neil ()
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 24th September 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Create a List of Months
The following code creates an array with month names or populates a combobox or listbox with same = without all the typing:
holdMonth(1) = “January”
holdmonth(2) - “February” etc etc etc
Do it quickly with
For jloop = 1 To 12
holdMonth(jloop) = Format(jloop & “/1/2000”, “mmmm”)
' for array
monthcombo.AddItem Format(jloop & “/1/2000”, “mmmm”)
' for combo
boxes
Next jloop
Use for jloop = 12 to 1 step -1 if you wish to go from December to January.
'Thank you Don
'We beleive in that Allah is the unique god and Muhammad is the last Prophet of 'Allah