One a more fundamental note - this points out one of the advantages to keeping your databases in third normal. If you had a related table where you kept email addresses you could have as many or as few as you wanted per user and you wouldn't have a bunch of fields with null values - and - these...
Excellent - Thanks.
I also found out I could use array notation:
<CFSET VARIABLES['Date' & i] = DateFormat(DateAdd("M", i, Now()))>
I still have a lot of optimization to do but I'm on my way no.
Thank you!
I have some code that creates variables for each of the next 12 months. This is an example for the second month.
<CFSET VARIABLES.Date1 = DateFormat(DateAdd("M", 1, Now()))>
<CFSET VARIABLES.numDays1 = DaysInMonth(Date1)>
<CFSET VARIABLES.Month1 = Month(Date1)>
<CFSET VARIABLES.MonthString1 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.