sabine: (Computer frustration)
[personal profile] sabine
To: Programmer-type people
Re: This damn project

Do you have a clear, simple, and short explanation of how collections and classes work in VB? Would you be able to share this with me? I'd be ever so grateful and bake you whatever cookies you want.


For our internal training classes, the Evil Empire assigns projects that "demonstrate mastery of the system". Now, granted, they're very good for actually, you know, learning what the hell it is that you are supposed to be able to do with the material that was flown by us in class. Anyway, I'm on the final of the four assigned in the Visual Basic class.

Our assignment is to build a form with two pop-up forms. On one of these, the user is prompted to enter some Merchandise Information: Name, price, quantity on hand, etc. The user can then go back to the main menu, click the other button, and gets a form that displays Inventory Information: number of different products, total items on hand, total worth of inventory, etc.

Since you can't share an array between forms, we have to declare a class and a collection of that class. So far, I have it set up so that, if I'm in debug mode, I can step through and see the input data get set into the modules. What I can't do is figure out how to call the information in the other form. Do I need to declare a public variable for the collection in the second form?

If it's not painfully obvious, I'm really not entirely sure what I'm doing with this. I managed to make an annoying little form earlier - the "ok" box moves every time you mouse-over it - but I'm having not so much luck with something that actually matters.

Blearghle.

In 40 minutes, we get to go meet with Msgr about wedding stuff. This is good. *grin*

Profile

sabine: (Default)
sabine

August 2021

S M T W T F S
1 234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags