Re: How to pass several variables?
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Thu, 4 Aug 2005 13:42:06 -0500
"HotRod" <NOSPAM@xxxxxxxxxxxxx> wrote in message
news:u2xcC$RmFHA.1412@xxxxxxxxxxxxxxxxxxxxxxx
> I have several variables that are read in from a file and I need to make
> them publicly available to several class_modules. What is the best way to
do
> this? I tried to make a variable that was Global in my form code but it's
> not readable in the class_module ideas?
>
A slight modification to Jeff's reply, which will certainly allow each
class/object to 'see' the globals, is to wrap the 'read' of the file (data)
within its own class. Instance that object in a module and provide a
reference to each of your classes.
Whenever you have a group of interesting stuff that must be shared about -
you likely have an object.
-ralph
.
- Follow-Ups:
- Re: How to pass several variables?
- From: HotRod
- Re: How to pass several variables?
- References:
- How to pass several variables?
- From: HotRod
- How to pass several variables?
- Prev by Date: Re: How to pass several variables?
- Next by Date: Re: optional Text Box validating to mm/dd/yy
- Previous by thread: Re: How to pass several variables?
- Next by thread: Re: How to pass several variables?
- Index(es):
Relevant Pages
|