Functions for On-Rev

Pierre Sahores psahores at free.fr
Tue Aug 10 13:39:33 EDT 2010


Hello,

You just need to quote the name of your "functions.irev" lib, separe your code in two parts (load, use) and eventually set the needed relative HTTP path if the actual file don't lies in the same directory.

> <?rev
> include "functions.irev"
> ?>
> 
> <?rev
> put titleCase("THIS SENTENCE WAS CONVERTED TO TITLE CASE.")
> ?>

HTH,

Best, 
Pierre


Le 10 août 2010 à 18:33, Gregory Lypny a écrit :

> 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
> 

--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.woooooooords.com
www.sahores-conseil.com







More information about the use-livecode mailing list