Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

training support pack

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Training Support Pack & OOP

Training Support Pack & OOP

ResolvedVersion 2003

Craig has attended:
Excel VBA Advanced course

Training Support Pack & OOP

Hi, just a couple of quick questions...

1) It was mentioned that our Training Support Packs were incomplete and we could download a full version - is this ready yet and could a link to it be posted please?

2) Can a Class be set up with optional properties, allowing you to create an object with these optional properties unassigned? If so do these properties then return some sort of null value?

Many thanks

Craig

RE: Training Support Pack & OOP

Slight rewording of my second question...

I would like to create a class and populate a collection of objects as instances of this class from a database as we did on the course.

However some of the fields returned by the query I am using contain NULLS so I was wondering how this would be dealt with by VBA? Can I still assign these fields to a property of the class? When I access them will these properties then contain NULL or the empty string "" or does this cause an error? Or as I was thinking in my first post, can I set a property as optional and it could return EMTPY when I try to access them?

Hope this is a clearer explanation of what I would like to do.

Many thanks

Craig

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Separate the year from a date

To separate the year from a date use the =year() function, eg a date is in cell A1 and in A2 you wish to display the year enter the function =year(A1)

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.