Re: Re : Global Variable
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Hi BB206,
Have you tried making adding a module to the project, and then in this
module declaring the variables and arrays you need as PUBLIC? This has
worked for me for ages.
I usually make the module name GLOBALS so that I can identify it
easily, then just dim the vars like this: PUBLIC strTestString as
String. Use the public keyword to make sure the scope of the variable
allows the variable to be seen / used by other modules and code.
Hope this helps
Cheers
The Frog
.
Relevant Pages
- Re: button scope problem?
... > global in scope (unless you fully namespace qualify them to ... > global in your proc will make you happy. ... As I stated, the arrays are global, and I do an 'upvar #0' ... chalk up more bad docs in those texts; otherwise, ... (comp.lang.tcl) - Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ... (alt.photography) - Re: Global Namespace Variables
... :> can be used to bring any namespace into scope. ... :> and all those arrays or variables are in scope. ... create a seperate namespace for seach set of data ... (comp.lang.tcl) - Re: Converting to capital only one word in a line
... On 1/15/07, Jay Savage wrote: ... >> Using scalar() there is redundant as the expression is already in scalar ... $[is the index of the first element of arrays within its lexical ... scope scope. ... (perl.beginners) - Re: Allocatable versus automatic arrays
... but some of these arrays are only used conditionally.... ... In a non-module scope, it ... once on an Alpha system with 4GB memory trying to allocate ... trouble with 100k of static memory easily fits in the category I ... (comp.lang.fortran) |
|