Hard code or portable code

hershrev hershbp at realtorsgroup.us
Wed Mar 10 19:30:55 EST 2004


On Wednesday, March 10, 2004, at 06:45 PM, Dar Scott wrote:

>
> On Wednesday, March 10, 2004, at 04:09 PM, hershrev wrote:
>
>> Can I please have a little understanding on the parameter part of 
>> functions what does it do or add?
>
> Parameters are variables local to the function.
>
> When the function is used, the values specified with the use are put 
> into the variables.
>
> An example (untested):
>
> function double x
>   return x*2
> end double
>
> on mouseUp
>   put 1 into x
>   put 2 into y
>   put double(3) + double(x) + double(y+1)
> end mouseUp
What should the result be on this ?
> ==>
> 14
>
> You can have more than one parameter.  In use, they are separated by 
> commas.  This is not the same as the comma operator (usually).
>
> There are reference parameters, but that is more advanced.
>
> Dar Scott
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list