It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Pointers - crash start to a shoppingcart

Moderator: dafunkymunky

Pointers - crash start to a shoppingcart

Postby Hasse76 on Mon Dec 07, 2009 11:34 pm

Hi!
I am hoping someone can help me with some pointers as to how I should program the following.
If you look at the attachment, I have the following a button called New Product, a button called Delete product and a textbox.

The assignment is to create a class called product, which contains
variables for productname and price, when the object is created.

a variable for quantity with a std. value of 1 when the object is created.

a method for adding to the quantity.

through property procedures one should be able to read but not write to the values in the class.

- the program should create a dynamic array called shoppingbasket which contains goods(objects of class product)

when the program is started there should be at least to demo goods written to the text box with array cellnumber, name of product and price.

When the user presses btnAddProduct, this should be added to the array, and presendted in the textbox.

If someone could help me a little bit I would appreciate it very much, I know it's a lot to ask for, but I would really like some examples on how to connect an array to the class, and update the textbox in the form with new products added through the AddProduct button
You do not have the required permissions to view the files attached to this post.
Hasse76
 
Posts: 1
Joined: Mon Dec 07, 2009 11:26 pm

Who is online

Users browsing this forum: No registered users and 2 guests