So I have some of my forms done. But I am stuck I need a basic code to go by so If anyone could provide a basic code I could maybe at least go into the right direction with this. T
This code is supost to go under a module for public use between all my forms in the shopping cart. Its an AddItem function procedure. It is suppost to accept the name of the book, add the book to the list, call the GetPrice, CalculateTax, CalculateShipping, and CalculateTotal to populate the fields on the main form. I will put the code I put into my module so far but I don't think it's all correct.
thanks in advace.
Module Module1
'Global-level Variables
Dim Subtotal As Decimal
Dim strSelectedBook As String
Dim Price As Integer
Dim lblSubTotal As String
Dim lblTax As String
Dim lblShipping As String
Dim lblTotal As String
Dim IstOutPut As String
'Declare class-level constants.
Const decSALESTAXPERCENT As Decimal = CDec(0.06) 'current sales tax
Const intPERITEMSHIPPING As Integer = 2 'item shipping charge
'Dim strInput As String ' Input
Dim strOut As String = String.Empty
Public selectChoice As Boolean = False
' This function adds the book to the list, calls the getprice, calculate tax, calc ship and cal total.
Public Function AddItem() As ItemActivation
End Function
End Module