One annoying fact with regards to namespace cluttering/confusion is that if you mark the property/method/function/whatever as "private", then you can not access it from within the module itself via Module1.MyMethod(), which means it could confuse some namespace stuff.
On 8/23/06, Dave Wooldridge <[EMAIL PROTECTED]> wrote:
If you don't want to clutter the namespace of your app and risk conflicting names, you can also mark the variables in your module as Protected. You then refer to them from anywhere in your app with the module's name listed before the variable. For example, if your module name is "MyGlobals" and your Protected string variable is "mUsername", you can access that variable with the following example syntax: EditField1.Text = MyGlobals.mUsername Regards, Dave Wooldridge Electric Butterfly http://www.ebutterfly.com ---------------------------------------- RB Garage - http://www.RBGarage.com The largest independent online resource For REALbasic software developers! ---------------------------------------- > Create a module. Add properties (variables), and make sure the > variables are global (blue globe). And then they are global. > > I name my modules depending on what they do. For example, in a > single window app, I name one module 'modDB' and another one is just > named module1. > > > > Trausti > > On 23.8.2006, at 12:28, Steven Hedgepeth wrote: > >> >> Ok, I found where constants go but what about public variables? >> Steve >> >> >> When using VB, I placed public variables and constants in the .bas >> module. I tried unsuccessfully to find an RB example that used >> public declarations. Is it correct to place them in a module and >> what are modules usually named? Can someone point out an example >> that shows how to use public declarations? Are they referred to as >> public or global in RB? >> >> _______________________________________________ >> Join Excite! - http://www.excite.com >> The most personalized portal on the Web! >> >> >> _______________________________________________ >> Unsubscribe or switch delivery mode: >> <http://www.realsoftware.com/support/listmanager/> >> >> Search the archives of this list here: >> <http://support.realsoftware.com/listarchives/lists.html> > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
-- Keith Bennett, tA-Kane Software developer and Macintosh enthusiast Free iPods!!! http://www.freeiPods.com/?r=10867472 _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
