| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Constants with Global Scope |
| From: | Tim Jones <tjmac@tolisgroup.com> |
| Date: | Thu, 27 Nov 2008 09:56:31 -0700 |
| 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: | <492EC3BB.1000403@chrononomicon.com> |
| References: | <492EC3BB.1000403@chrononomicon.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
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.Or, you could create a global module (I call mine AppGlobals) and place any application global properties, constants, classes, and methods there. HTH, Tim _______________________________________________ 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: Constants with Global Scope, Craig A. Finseth |
|---|---|
| Next by Date: | Re: UI inspirations and standards from MS, Steve Garman |
| Previous by Thread: | Re: Constants with Global Scope, Craig A. Finseth |
| Next by Thread: | Re: Constants with Global Scope, Tom Benson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |