Re: classes to perform functions for many forms

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve Moores (byrequest_at_only.com)
Date: 04/09/04


Date: Fri, 09 Apr 2004 06:48:50 GMT

Hi there,

You can also define class members as Shared, that way you don't have to
instantiate an instance of the class to use the public members you've set
up.

It's not a good practice, but it sort of mimics the direct
ClassX.FunctionName syntax you're use to in VB6.

"polynomial5d" <anonymous@discussions.microsoft.com> wrote in message
news:161E3059-0CE2-4BEE-B7C9-76ECEB26E747@microsoft.com...
> Thanks muchly. That answers my question. And while getting a class to do
work for many forms remains much more difficult than in vb6, at least it's
doable.
>
> polynomial5d



Relevant Pages

  • Re: COM Communication with FoxPro
    ... register COM objects such that I can instantiate them in VB6, ... can call methods of the VFP objects I instantiate and pass data to ... methods in the VB6 code and pass data to them? ... Thanks for any "pointers"! ...
    (microsoft.public.vb.general.discussion)
  • COM Communication with FoxPro
    ... register COM objects such that I can instantiate them in VB6, ... can call methods of the VFP objects I instantiate and pass data to ... methods in the VB6 code and pass data to them? ... Thanks for any "pointers"! ...
    (comp.lang.basic.visual.misc)
  • COM Communication with FoxPro
    ... register COM objects such that I can instantiate them in VB6, ... can call methods of the VFP objects I instantiate and pass data to ... methods in the VB6 code and pass data to them? ... Thanks for any "pointers"! ...
    (microsoft.public.vb.general.discussion)
  • COM Communication with Visual Basic 6
    ... register COM objects such that I can instantiate them in VB6, ... can call methods of the VFP objects I instantiate and pass data to ... methods in the VB6 code and pass data to them? ... Thanks for any "pointers"! ...
    (microsoft.public.fox.programmer.exchange)
  • Re: question about component integration or assembly
    ... Yes I thought the answer had to be not, however I have a confusion ... instantiate an instance of A; instantiate an instance of B; wire ... - Have another component C which has properties (class members) typed ...
    (comp.object)