I want my UDF to return an error code if there is a problem, otherwise
return a value. Would it look something like this?
If IsDefined("ErrorCode")
{
Return ErrorCode;
Else
Return VariableName;
}
So then I should be able to do something like:
<CFIF val(MyUdf(VariablePassed)) EQ 0>
<CFSET Variable=MyUDF(VariablePassed)>
</CFIF>
Or am I off base?
T
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists