function myFunction(some_passed_var){
var pv = some_passed_var;
pv = pv+10;
return pv;
}

> -----Original Message-----
> From: Daniel Kessler [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 28 mei 2004 16:56
> To: CF-Talk
> Subject: functions
>
> <
>
> I have a set of code in CF that I use four times in a script.
>  It could easily be a function with an in/out but I've yet to
> see functions in CF, mostly scripts.  I don't want to do
> anything special by making it external or making it nice
> enough to give to others.  I just want a callable/reusable function:
>
> function myFunction(some_passed_var){
> <cfset pv = some_passed_var>
> <cfset pv = pv+10>
> return pv
> }
>
> Is there something similar in CF?
>
> >
>
> --
> Daniel Kessler
>
> Department of Public and Community Health University of
> Maryland Suite 2387 Valley Drive College Park, MD  20742-2611
> 301-405-2545 Phone
> www.phi.umd.edu
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to