Heads up, don't use "secure" as a handler name

dunbarx at aol.com dunbarx at aol.com
Sat Sep 10 14:24:31 EDT 2011


No wonder my function:


function save

end save




keeps throwing an error





-----Original Message-----
From: J. Landman Gay <jacque at hyperactivesw.com>
To: LiveCode Mailing List <use-livecode at lists.runrev.com>
Sent: Sat, Sep 10, 2011 10:06 am
Subject: Heads up, don't use "secure" as a handler name


I had a function named "secure()" that's worked fine forever. It takes a 
text string as a parameter, processes it as SSL, and returns the secure 
string.

As of LiveCode 4.6.4, "secure" is apparently an undocumented keyword. It 
not only throws an error and prevents scripts from compiling, it also 
prevents the script editor from populating its handler list. Basically 
it aborts whatever it touches.

Changing the function name to "secureString()" fixed it. So just a 
heads-up in case you've got something like that in your code.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list