> Thanks Sylvain.
> I have built some .net webForms but used VB as opposed to C#.
>
> In your opinion,
> Is there limitations using VB instead of C#?
>
> "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
> wrote in message news:OieVqBjjGHA.4504[ at ]TK2MSFTNGP05.phx.gbl...
>> If you want to learn OOP, VBA and Access are not the best place for doing
>> so. The implementation for custom OOP inside VBA is very, very limited
>> and the kind of things you are doing inside Access are usually simply to
>> simple to require OOP.
>>
>> Objects in VBA are more like simple Structures with associated functions
>> than Objects; with no real possibility of inheritance, overloading of
>> operators, polymorphismm, virtual call, template, etc.
>>
>> If you want to study OOP, you should take a more object oriented language
>> such as C++ (difficult but universal) or C# (much more simpler and
>> strongly connected to the .NET Framework; which is also the latest
>> offering from Microsoft for a development platform).
>>
>> --
>> Sylvain Lafontaine, ing.
>> MVP - Technologies Virtual-PC
>> E-mail:
http://cerbermail.com/?QugbLEWINF>>
>>
>> "John 3:16" <bobmcc[ at ]tricoequipment.com> wrote in message
>> news:O9P5W4hjGHA.1552[ at ]TK2MSFTNGP03.phx.gbl...
>>> Yes....
>>> It compiles fine.
>>> are you saying that the new class declared in
>>> one form should persist throughout the project?
>>> I am new to oop and am trying to get my mind
>>> around the concept.
>>> Thanks in advance,
>>> Bob.
>>>
>>>
>>> "Robert Morley" <rmorley[ at ]magma.ca.N0.Freak1n.sparn> wrote in message
>>> news:Ob0NVqAjGHA.5036[ at ]TK2MSFTNGP04.phx.gbl...
>>>> I'm not sure why Intellisense wouldn't acknowledge it. The only time
>>>> I've seen it fail to acknowledge something is when there's a syntax
>>>> error somewhere in your code. Can you compile the entire project
>>>> properly?
>>>>
>>>>
>>>>
>>>> Rob
>>>>
>>>> "John 3:16" <bobmcc[ at ]tricoequipment.com> wrote in message
>>>> news:Otrkw$$iGHA.3588[ at ]TK2MSFTNGP02.phx.gbl...
>>>>> Rob,
>>>>> The objective I am trying to gain insight into is this.
>>>>> Assume there is a class named Addrs
>>>>> -one of the properties of Addrs is Addrs.A
>>>>> -another property is Addrs.B
>>>>> -one of it's method is Addrs.GetAddrName(s as string) as string
>>>>>
>>>>> What I would like to learn how to do is this....
>>>>>
>>>>> While working on a form.
>>>>> dim Something as new Addrs
>>>>> Addrs.a = SomeValue
>>>>>
>>>>> THEN I want to open another form...
>>>>> .. execute Addrs.GetAddrName to populate Addrs.B with a value
>>>>> from this 2nd form,
>>>>>
>>>>> ON 2nd Form...
>>>>> dim s as string
>>>>> s = someValue
>>>>> Something.b = Something.GetAddrName(s)
>>>>>
>>>>> The problem I am experiencing is that the intellisense does
>>>>> not acknowledge the existence of Something as an instanstiated class.
>>>>> I just want to be able to allow the class to be the equivelant of
>>>>> a global variable for lack of a better explanation.
>>>>>
>>>>> I hope this explanation is clear.
>>>>> Please bear with me on this and ask for further clarification if
>>>>> needed.
>>>>>
>>>>> Thanks in advance,
>>>>> bob.
>>>>>
>>>>> "Robert Morley" <rmorley[ at ]magma.ca.N0.Freak1n.sparn> wrote in message
>>>>> news:%23ySWXP$iGHA.1276[ at ]TK2MSFTNGP03.phx.gbl...
>>>>>> Actually, in Access 2000 and beyond (and maybe 95/97, I forget), you
>>>>>> most
>>>>>> certainly CAN have more than one instance of a form. You have to
>>>>>> forego
>>>>>> using DoCmd.OpenForm, however, and instantiate the form directly.
>>>>>> The code
>>>>>> below is vastly simplified, but would happily open two instances of
>>>>>> the same
>>>>>> form.
>>>>>>
>>>>>> Dim f1 As New MyForm
>>>>>> Dim f2 As New MyForm
>>>>>>
>>>>>> f1.Visible = True
>>>>>> f1.SomeValue = "Form1"
>>>>>> f2.Visible = True
>>>>>> f2.SomeValue = "Form2"
>>>>>>
>>>>>>
>>>>>> Or in a class-based situation, you would simply instantiate the one
>>>>>> form with
>>>>>>
>>>>>> Dim f1 As New MyForm
>>>>>> 'Or more properly...
>>>>>> 'Dim f1 As MyForm
>>>>>> 'Set f1 As New MyForm
>>>>>> '... do stuff
>>>>>> 'Set f1 = Nothing
>>>>>>
>>>>>> Each instance of the class would then have its own instance of the
>>>>>> form, f1 (which you can then echo out of the class as a property, or
>>>>>> do whatever you want to do with it).
>>>>>>
>>>>>>
>>>>>> Rob
>>>>>>
>>>>>>
>>>>>> "Vadim Rapp" <vrapp[ at ]nospam.polyscience.com> wrote in message
>>>>>> news:OmiowC$iGHA.3816[ at ]TK2MSFTNGP02.phx.gbl...
>>>>>>> Hello John:
>>>>>>> You wrote on Thu, 8 Jun 2006 14:23:34 -0400:
>>>>>>>
>>>>>>> J> Thanks for the reply Vadim
>>>>>>> J> The Class property is declared as Public.
>>>>>>> J> ..but when you instanstiate a new class object, then
>>>>>>> J> open the next form, the class is out of scope, so it's
>>>>>>> properties are
>>>>>>> J> out of scope.
>>>>>>>
>>>>>>> Sorry, don't quite understand. In Access, you can't have more than
>>>>>>> one
>>>>>>> instance of the same form. So you refer as forms!form1.myproperty=1.
>>>>>>>
>>>>>>> Vadim
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>