LawnyToast
New Member
Hello ProgressTalk! This is my first post so I will be brief. I am trying to find the most efficient way to display the current month in string form. Right now I have.
iMonth = month(today)
cCurrentMonth = if iMonth = 1 then 'January' else if iMonth = 2 then 'February' else if iMonth = 3 then 'March' else if iMonth = 4 then 'April' else if iMonth = 5 then 'May' else if iMonth = 6 then 'June' else if iMonth = 7 then 'July' else if iMonth = 8 then 'August' else if iMonth = 9 then 'September' else if iMonth = 10 then 'October' else if iMonth = 11 then 'November' else if iMonth = 12 then 'December'.
The variables are all defined towards the top of my procedure. I believed this would be a relatively simple thing to accomplish. I think I might have forgotten something basic here.
iMonth = month(today)
cCurrentMonth = if iMonth = 1 then 'January' else if iMonth = 2 then 'February' else if iMonth = 3 then 'March' else if iMonth = 4 then 'April' else if iMonth = 5 then 'May' else if iMonth = 6 then 'June' else if iMonth = 7 then 'July' else if iMonth = 8 then 'August' else if iMonth = 9 then 'September' else if iMonth = 10 then 'October' else if iMonth = 11 then 'November' else if iMonth = 12 then 'December'.
The variables are all defined towards the top of my procedure. I believed this would be a relatively simple thing to accomplish. I think I might have forgotten something basic here.