constants in LC server
Matthias Rebbe
matthias_livecode_150811 at m-r-d.de
Fri Jun 16 05:35:10 EDT 2017
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>).
Matthias Rebbe
+49 5741 310000
matthiasrebbe.eu <http://matthiasrebbe.eu/>
> Am 16.06.2017 um 09:26 schrieb Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
>
> Hi,
>
> is it possible that constants are not supported by LC server?
>
> When executing this little script
>
> <?lc
> constant kText="Peter",kNumber="3"
> put kText & "<br>" & kNumber
> ?>
>
> LC server outputs the names of the constants instead of the values.
>
> Tried with LC server 7.1 on Livecode Hosting and 8.12 on a 3rd party hosting platform.
>
> What am i missing?
>
>
> Regards,
>
> Matthias
>
> Matthias Rebbe
> +49 5741 310000
> matthiasrebbe.eu <http://matthiasrebbe.eu/> <http://matthiasrebbe.eu/ <http://matthiasrebbe.eu/>>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto: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