| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Constants with Global Scope |
| From: | Bart Silverstrim <bsilver@chrononomicon.com> |
| Date: | Thu, 27 Nov 2008 20:25:41 -0500 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <FD263E05-6061-410D-9F2D-3E53B86FBFF8@tolisgroup.com> |
| References: | <492EC3BB.1000403@chrononomicon.com> <FD263E05-6061-410D-9F2D-3E53B86FBFF8@tolisgroup.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
| User-agent: | Thunderbird 2.0.0.18 (X11/20081125) |
Tim Jones wrote: On Nov 27, 2008, at 8:58 AM, Bart Silverstrim wrote: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 withthatstaticbox.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?You'll need to refer to it as window.constAppName. I knew it was something simple I was overlooking. Or, you could create a global module (I call mine AppGlobals) and place any application global properties, constants, classes, and methods there. Another idea I'll keep in mind, thank you! And thank you to everyone else who replied with these ideas too! _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Splash screen, Terry Ford |
|---|---|
| Next by Date: | Re: Constants with Global Scope, Terry Ford |
| Previous by Thread: | Re: Constants with Global Scope, Tom Benson |
| Next by Thread: | Re: Constants with Global Scope, Terry Ford |
| Indexes: | [Date] [Thread] [Top] [All Lists] |