constants in LC server
Mark Waddingham
mark at livecode.com
Fri Jun 16 05:44:36 EDT 2017
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 ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
More information about the use-livecode
mailing list