have. When writing functions in CF script the arguments have to be in
order, first the required attributes, and then the optional ones, so
something like this:
function checkName(cFirstName){
if(arrayLen(arguments) gt 1){
cLastName = arguments[2]
}
}
This allows you to have an optional argument of cLastName. It might not be
exact but it should be pretty close.
That what you mean?
Timothy Heald
Web Portfolio Manager
Overseas Security Advisory Council
U.S. Department of State
571.345.2319
The opinions expressed here do not necessarily reflect those of the U.S.
Department of State or any affiliated organization(s). Nor have these
opinions been approved or sanctioned by these organizations. This e-mail is
unclassified based on the definitions in E.O. 12958.
-----Original Message-----
From: BOUDOT Christian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 9:10 AM
To: CF-Talk
Subject: <cfargument required="no"> in cfscript???
Hi Folks,
Is there any equivalence for the required attribute when the function is
written with <cfscript>?
<cffunction name="fctFoo">
<cfargument name="sFoo" type="string" required="no">
</cffunction>
<cfscript>
function fctFoo(sFoo){
}
</cfscript>
thx
Chris
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]