I wanted to try something I hadn't before with this and didn't see it
directly in the tutorial or reference, but maybe I'm looking for the
wrong thing or it already exists as part of the IDE and I overlooked it.
I wanted to set a constant string containing the name of the application
so that in items like the splashscreen and title bars I could just quote
it. That way if things change I can change one string and it would
update everywhere.
I tried putting in a global constant in my primary window with Add
Constant and set the global scope, but when I tried setting it in
another window's static text with
thatstaticbox.setString = constAppName + "More Text"
compiles fail at constAppName, so I'm suspecting that the global
constant is only accessible in the window it's declared in, despite
being global?
So...does this need to be a property set, or is it already in the
application as a variable, or is it set as a module property to do
something like this...? I know it's probably something ridiculously
simple and I'm overlooking it in the language reference somewhere.
Otherwise I'm going to have to remember to alter every instance in code
where I code a name or version, which I suppose I could do...I wonder if
anyone else does that?...
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|