realbasic-nug
[Top] [All Lists]

Re: Constants with Global Scope

To: realbasic-nug@lists.realsoftware.com
Subject: Re: Constants with Global Scope
From: "Craig A. Finseth" <fin@finseth.com>
Date: Thu, 27 Nov 2008 10:14:57 -0600 (CST)
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
Cc: realbasic-nug@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <492EC3BB.1000403@chrononomicon.com> (message from Bart Silverstrim on Thu, 27 Nov 2008 10:58:51 -0500)
References: <492EC3BB.1000403@chrononomicon.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
   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"

You can refer to it as:

        WINDOWNAME.constAppName

I create a global module for this purposes.  Belive me, when you come
back to the program after a while, you will be VERY GLAD that you have
that WINDOWNAME (or other identifier) in front.

Craig

_______________________________________________
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>