a CFSCRIPT function and a CFFUNCTION one, except that you can use tags,
declare named optional arguments and do typechecking with CFFUNCTION. Other
than that, I believe the two are 100% equivalent.
Cheers,
barneyb
> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 2004 10:33 AM
> To: CF-Talk
> Subject: cfscript question
>
> If the declaration of variables using var within cfscript
> isn't necessary,
> what kind of variables are being created? Are they in the variables
> scope?
>
> For example, the variables 'sdatefmt' and 'edatefmt' in the
> cf function
> shown below:
>
> function DateRangeFormat(sdate, edate, mask, divider) {
> if (IsDate(sdate)) sdatefmt = DateFormat(sdate, mask); else
> sdate = "";
> if (IsDate(edate)) edatefmt = DateFormat(edate, mask); else
> edate = "";
> if (Len(sdatefmt) and Len(edatefmt) and (sdatefmt is not edatefmt))
> return sdatefmt & " " & divider & " " & edatefmt;
> else if (Len(sdatefmt)) return sdatefmt;
> else if (Len(edatefmt)) return edatefmt;
> else return "";
> }
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]