PC Review


Reply
Thread Tools Rate Thread

Creating user defined objects

 
 
Matt
Guest
Posts: n/a
 
      18th Jan 2007
Hi All,

I want to create my own object and then in a different module create an
Array of this object. Is there a good reference for the syntax of user
defined objects?

Is this even possible in VBA (I have done this multiple times in .NET,
but I do not think the syntax would be the same)?

 
Reply With Quote
 
 
 
 
Baz
Guest
Posts: n/a
 
      18th Jan 2007
Looking up "Class" in Access/VBA help should reveal the topic "Program With
Class Modules", which should be enough to get you started if you are already
familiar with the concepts. It's a lot simpler in VBA than it is in VB.Net,
you have few of the ludicrous OO bells-and-whistles that the designers of
..Net decided to confuse us with.

Arrays in VBA are very limited, you can only index them by ordinal number (I
can't remember what VB.Net offers, probably it has some preposterous array
class!). You may find that a Collection object is more suitable.

"Matt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I want to create my own object and then in a different module create an
> Array of this object. Is there a good reference for the syntax of user
> defined objects?
>
> Is this even possible in VBA (I have done this multiple times in .NET,
> but I do not think the syntax would be the same)?
>



 
Reply With Quote
 
Matt
Guest
Posts: n/a
 
      18th Jan 2007

Baz wrote:
> Looking up "Class" in Access/VBA help should reveal the topic "Program With
> Class Modules", which should be enough to get you started if you are already
> familiar with the concepts. It's a lot simpler in VBA than it is in VB.Net,
> you have few of the ludicrous OO bells-and-whistles that the designers of
> .Net decided to confuse us with.
>
> Arrays in VBA are very limited, you can only index them by ordinal number (I
> can't remember what VB.Net offers, probably it has some preposterous array
> class!). You may find that a Collection object is more suitable.
>
> "Matt" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi All,
> >
> > I want to create my own object and then in a different module create an
> > Array of this object. Is there a good reference for the syntax of user
> > defined objects?
> >
> > Is this even possible in VBA (I have done this multiple times in .NET,
> > but I do not think the syntax would be the same)?
> >


Thanks Baz!!!

 
Reply With Quote
 
Matt
Guest
Posts: n/a
 
      18th Jan 2007

Baz wrote:
> Looking up "Class" in Access/VBA help should reveal the topic "Program With
> Class Modules", which should be enough to get you started if you are already
> familiar with the concepts. It's a lot simpler in VBA than it is in VB.Net,
> you have few of the ludicrous OO bells-and-whistles that the designers of
> .Net decided to confuse us with.
>
> Arrays in VBA are very limited, you can only index them by ordinal number (I
> can't remember what VB.Net offers, probably it has some preposterous array
> class!). You may find that a Collection object is more suitable.
>
> "Matt" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi All,
> >
> > I want to create my own object and then in a different module create an
> > Array of this object. Is there a good reference for the syntax of user
> > defined objects?
> >
> > Is this even possible in VBA (I have done this multiple times in .NET,
> > but I do not think the syntax would be the same)?
> >


Thanks Baz!!!

..NET objects are annoying - too many ways to do the same thing

 
Reply With Quote
 
Baz
Guest
Posts: n/a
 
      18th Jan 2007
My sentiments precisely!

"Matt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> .NET objects are annoying - too many ways to do the same thing
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When should you create a user defined datatype or just use objects? Andy B. Microsoft VB .NET 8 26th Feb 2009 08:33 AM
Check to see if two user defined objects are equal (C# 2.0) Jay Douglas Microsoft C# .NET 7 9th Nov 2005 03:23 AM
Passing Arrays in User Defined Objects =?Utf-8?B?RGV2ZWxvcGVyIG9mIHRoZSBDYXJpYmJlYW4=?= Microsoft Excel Programming 3 10th Sep 2005 02:40 AM
User defined Clipboard objects in other applications Christian Nein Microsoft Dot NET Framework 1 6th Sep 2005 04:21 PM
User Defined Objects in VBA? McManCSU Microsoft Excel Programming 3 29th Jul 2005 07:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.