On 2017-06-16 11:35, Matthias Rebbe via use-livecode wrote:
To answer my own question, it seems that constants on LC Server only
work in handlers.

So this script outputs the values

<?lc
on showCostant
  constant kText="Peter",kNumber="3"
  put kText & "<br>" & kNumber
end showConstant

showConstant
?>

I think that´s a bug, either in LC Server or at least in the
documentation, as the documentation doesn't mention it.
So i filed a bug (#19886 <http://quality.livecode.com/show_bug.cgi?id=19886>).

Interesting - it must be constants aren't working at global scope (a concept which is specific to the server engine) - thanks for filing the bug :)

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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

Reply via email to