Functions in the on-rev - LC server script

Mike Bonner bonnmike at gmail.com
Tue Nov 16 12:04:53 EST 2010


Define the functions first.

<?rev
function myFunction
put 1 + 1 into var2
return var2
end myFunction

put myFunction() into var1
put var1
?>

On Tue, Nov 16, 2010 at 9:40 AM, paolo mazza <mazzapaoloitaly at gmail.com>wrote:

> How can I place a function in a on-rev - CGI server script ?
> I have to port a stack script (with commands and functions) to a .irev text
> file for the  on-rev  server .
> I expected something similar to the following script...
>
> <?rev
>   put MyFunction() into tVAR1
>   put tVAR1
>
> function MyFunction
>   put 1 + 1 into VAR2
>   return VAR2
> end MyFunction
>
> ?>
> ... but obviously it does not work !!!
>
> Any idea?
>
> Many thanks
>
> Paolo Mazza
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the Use-livecode mailing list