Functions for On-Rev

Alex Tweedly alex at tweedly.net
Tue Aug 10 12:11:16 CDT 2010


I saw your later post, but thought I'd mention ....

it should be

function titlecase  pString

rather than

function titlecase, pString

(i.e. no comma between name and parameter list)

-- Alex.

On 10/08/2010 17:33, Gregory Lypny wrote:
> Hello everyone,
>
> Is it possible to call a file of functions for On-Rev?  I created a file called functions.irev.  In it, I put a function that converts strings to title case.
>
> <?rev
> function titleCase, pString
> -- do stuff
> return theResult
> end titleCase
> ?>
>
> I then placed an HTML object on a web page with
>
> <?rev
> include functions.irev
> put titleCase("THIS SENTENCE WAS CONVERTED TO TITLE CASE.")
> ?>
>
> but unfortunately, I get nothing.
>
> Regards,
>
> Gregory
>
> _______________________________________________
> 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