paulthepaddy
Well-known member
hi, i didn't really know what to call this thread as it may not be complecated at all :S
my project is for creating invoices for car repairs.
i have a class called car and it has strings for, make,model,reg,colour,damage type, subtotal discount,additonal, total.
so i use dim car1 as new car and set values to the strings but i cant find a way to tell the application that is is finshed with car1 and to move onto car2. i dont really know what information you would need so if you have any ideas and need more info just let me know what you need
i am using a button click event to set th variables an example of why m looking to do, but i no this wont work
basicly i want to use a variable to determin what car to add the data too
my project is for creating invoices for car repairs.
i have a class called car and it has strings for, make,model,reg,colour,damage type, subtotal discount,additonal, total.
so i use dim car1 as new car and set values to the strings but i cant find a way to tell the application that is is finshed with car1 and to move onto car2. i dont really know what information you would need so if you have any ideas and need more info just let me know what you need
i am using a button click event to set th variables an example of why m looking to do, but i no this wont work
VB.NET:
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
dim i as integer
cari.Make = ComboBox_Car_Maker.Text
cari.Model = ComboBox_Car_Model.Text
cari.Colour = ComboBox_Car_Colour.Text
cari.Reg = TXT_Car_reg.Text
End Sub
basicly i want to use a variable to determin what car to add the data too
Last edited: