Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB Class definition

47 views
Skip to first unread message

Ed Sowell

unread,
Apr 6, 2009, 6:46:31 PM4/6/09
to
When I look at examples of "Class modules" in VBA Developers Handbook (Ken
Getz) I see private data and public methods declarations, but there is no
header line or End. However, when I insert a new class in a VB project in
Visual Studio 7 I get what looks more like a C++ class declaration, i.e.
Public Class myClass
...
End Class

Is this just new syntax?

TIA

Ed

Ralph

unread,
Apr 6, 2009, 7:59:41 PM4/6/09
to

"Ed Sowell" <jag_man__R...@sbcglobal.net> wrote in message
news:CF05553B-4E2D-406A...@microsoft.com...

Yes.

The "Visual Basic" language supplied with the .Net Framework development
platforms is similar to the language used with the VB6 development platform
and VBA, but it not the same.

-ralph


Bill McCarthy

unread,
Apr 6, 2009, 10:18:30 PM4/6/09
to
Hi Ed,

"Ed Sowell" <jag_man__R...@sbcglobal.net> wrote in message
news:CF05553B-4E2D-406A...@microsoft.com...


yep. As of VB7 onwards, you can have multiple classes per code file so the
"Class ... End Class" is now part of the language.

Note: if you using VB7 or later, then best to ask questions in the dotnet
forums, such as :
microsoft.public.dotnet.languages.vb

MikeD

unread,
Apr 7, 2009, 1:09:54 AM4/7/09
to

"Ed Sowell" <jag_man__R...@sbcglobal.net> wrote in message
news:CF05553B-4E2D-406A...@microsoft.com...

I guess that's a polite way of putting it.

Visual Studio 7....that'd be .NET.

VBA and "classic" VB (meaning VB6 and earlier) are actually quite different
from VB.NET. Yes, there are some similarities, but it's really apples and
oranges. If you want a book for "Visual Studio 7" (and it's not actually
named that), you need to get a different book (and not one for VBA either as
that would be closer to VB6 than VB.NET).

--
Mike

Al Reid

unread,
Apr 8, 2009, 9:39:28 PM4/8/09
to
"MikeD" <nob...@nowhere.edu> wrote in message
news:uWX0a8zt...@TK2MSFTNGP03.phx.gbl...
>
>...there are some similarities, but it's really apples and oranges. Mike
>

I use both on a daily basis and It's say it's more like Oranges and
Tangerines.

--
Al Reid


MikeD

unread,
Apr 8, 2009, 10:35:02 PM4/8/09
to

"Al Reid" <ar...@reidDASHhome.com> wrote in message
news:eXasOQLu...@TK2MSFTNGP02.phx.gbl...

Depends on your perspective, I suppose. VB5 to VB6, in my perspective, is
oranges to tangerines.

--
Mike


Auric__

unread,
Apr 9, 2009, 1:13:33 PM4/9/09
to

Not even that; more like two different varieties of orange. VB6 can compile
unmodified VB5 code -- usually, if not *always* -- but just *try* to compile
VB6 code on any flavor of VB.net.

--
Google groupies are filtered out. (I don't see posts from Google Groups).
--
2007 2008 2009 2010 2011
|------------|------------|---+--------|------------|------------|
^
YOU ARE HERE

MikeD

unread,
Apr 9, 2009, 3:14:18 PM4/9/09
to

"Auric__" <not.m...@email.address> wrote in message
news:Xns9BE867903FA76au...@85.214.105.209...

> On Thu, 09 Apr 2009 02:35:02 GMT, MikeD wrote:
>
>> "Al Reid" <ar...@reidDASHhome.com> wrote in message
>> news:eXasOQLu...@TK2MSFTNGP02.phx.gbl...
>>> "MikeD" <nob...@nowhere.edu> wrote in message
>>> news:uWX0a8zt...@TK2MSFTNGP03.phx.gbl...
>>>
>>>>...there are some similarities, but it's really apples and oranges. Mike
>>>
>>> I use both on a daily basis and It's say it's more like Oranges and
>>> Tangerines.
>>
>> Depends on your perspective, I suppose. VB5 to VB6, in my perspective, is
>> oranges to tangerines.
>
> Not even that; more like two different varieties of orange. VB6 can
> compile
> unmodified VB5 code -- usually, if not *always* -- but just *try* to
> compile
> VB6 code on any flavor of VB.net.
>

But it IS possible to have VB6 code that won't compile under VB5....so you
can't really call them both oranges. <g>

--
Mike

Auric__

unread,
Apr 9, 2009, 8:46:37 PM4/9/09
to

Oranges and... uh... mutant oranges...?

--
Google groupies are filtered out. (I don't see posts from Google Groups).
--

Usenet is the reason everything should be made of plastic.

0 new messages