Text files driving me mad

Scott Rossi scott at tactilemedia.com
Thu Jun 13 11:55:00 EDT 2002

Recently, "Ben Rubinstein"  wrote:

> I just create a global
> somewhere in my initialisation:
>   global kCR
>   put numtochar(13) into kCR
> Then I use kCR everywhere I think I should be able to use CR.  Of course
> it's annoying that I can't create it as a constant; and I have to remember
> to declare the global in every script where I reference it... but I don't
> end up with a bunch of workarounds, just a bunch of bugs (when I forget to
> declare it, or when it didn't get initialised).

A tangent off the original issue... if you don't want to have to declare a
global, you can always give your stack a custom property:

set the kCR of this stack to numtochar(13)


Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
E: scott at tactilemedia.com
W: http://www.tactilemedia.com

More information about the Use-livecode mailing list