Re: How to pass several variables?




"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


.



Relevant Pages

  • RE: Web Methods Lock
    ... > first user or will both be able to run the web method? ... > web service handle this? ... Is there any good reference available. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.webservices)
  • trying to print a mail merge document of 7 pgs that need to be sta
    ... instead of 7 pgs individually-like it should-7 pages per each record. ... VISUAL BASIC DUMBY. ... Could someone explain or tell me where i can go and reference how to do this. ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Lookup from text file
    ... the textfile to the table and try to define a lookup. ... how do I reference the columns of the text file? ... Stijn Verrept. ... Prev by Date: ...
    (microsoft.public.sqlserver.dts)
  • Re: protected mode: loading the idt
    ... limit should always be one less than an integral multiple of eight (that is, ... Reference: ... Intel Architecture Software Developer's Manual Volume 3: ... Prev by Date: ...
    (comp.lang.asm.x86)
  • Re: Assignment by reference or value
    ... not a reference as it is a new object in it's own right. ... public variable it is accessible within the form code, as you show, which ... "Mark" wrote in message ... Because i use a callback e.g. ...
    (microsoft.public.excel.programming)