Re: [RESOLVED] List of Dates
the loop could be a for loop instead
Code:
private sub form_load()
x=100
for d=date to date+x
lstdates.additem format(d,"dd/mm/yyyy")
next
end sub
what exactly does a date dddd mmmm yyyy look like
and is it usefull
here to talk
Re: [RESOLVED] List of Dates
@incidentals:
Where is you variable declarations?
Re: [RESOLVED] List of Dates
Quote:
Originally Posted by
incidentals
what exactly does a date dddd mmmm yyyy look like
and is it usefull
Best way to find out is by actually trying. And of course it could be usefull to see full weekday/month name. ;)
Re: [RESOLVED] List of Dates
Quote:
Originally Posted by
incidentals
the loop could be a for loop instead
Code:
private sub form_load()
x=100
for d=date to date+x
lstdates.additem format(d,"dd/mm/yyyy")
next
end sub
what exactly does a date dddd mmmm yyyy look like
and is it usefull
here to talk
TY for new code, much better:thumb: made little adjustment to format
Code:
Dim x As Integer
Private Sub Form_Load()
x = 100
For d = Date To Date + x
lstDates.AddItem Format$(d, "dddd, dd mmmm yyyy")
Next
End Sub
oh and this appears like this : Thursday, 29 December 2011
Re: [RESOLVED] List of Dates
Dim x As Integer
Dim DateFormat As String
Private Sub Form_Load()
DateFormat = "dddd, dd mmmm yyyy"
x = 100
For d = Date To Date + x
lstDates.AddItem Format$(d, DateFormat)
Next
End Sub
Re: [RESOLVED] List of Dates
well done
now don't forget to rate the posts that helped
here to talk