Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / VB Syntax / April 2009



Tip: Looking for answers? Try searching our database.

VB Class definition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed Sowell - 06 Apr 2009 23:46 GMT
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 - 07 Apr 2009 00:59 GMT
> 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
[quoted text clipped - 5 lines]
>
> Is this just new syntax?

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 - 07 Apr 2009 03:18 GMT
Hi Ed,

> 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
[quoted text clipped - 5 lines]
>
> Is this just new syntax?

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 - 07 Apr 2009 06:09 GMT
> 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
[quoted text clipped - 5 lines]
>
> Is this just new syntax?

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).

Signature

Mike

Al Reid - 09 Apr 2009 02:39 GMT
>...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 - 09 Apr 2009 03:35 GMT
>>...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.

Signature

Mike

Auric__ - 09 Apr 2009 18:13 GMT
>>>...there are some similarities, but it's really apples and oranges. Mike
>>
[quoted text clipped - 3 lines]
> 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.

Signature

Google groupies are filtered out. (I don't see posts from Google Groups).
--
2007         2008         2009         2010         2011

|------------|------------|---+--------|------------|------------|
                             ^
                        YOU ARE HERE
MikeD - 09 Apr 2009 20:14 GMT
>>>>...there are some similarities, but it's really apples and oranges. Mike
>>>
[quoted text clipped - 9 lines]
> 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>

Signature

Mike

Auric__ - 10 Apr 2009 01:46 GMT
>>>>>...there are some similarities, but it's really apples and oranges.
>>>>>Mike
[quoted text clipped - 11 lines]
> But it IS possible to have VB6 code that won't compile under VB5....so
> you can't really call them both oranges.  <g>

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

Signature

Google groupies are filtered out. (I don't see posts from Google Groups).
--
Usenet is the reason everything should be made of plastic.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.