Skip to content

Instantly share code, notes, and snippets.

@k4m4r82
Created February 10, 2016 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k4m4r82/52d180a02053e56fae2b to your computer and use it in GitHub Desktop.
Save k4m4r82/52d180a02053e56fae2b to your computer and use it in GitHub Desktop.
Option Explicit
Private mOrderID As Long
Private mProductID As Long
Private mUnitPrice As Double
Private mQuantity As Integer
Private mDiscount As Single
Public Property Let orderID(ByVal vData As Long)
mOrderID = vData
End Property
Public Property Get orderID() As Long
orderID = mOrderID
End Property
Public Property Let productID(ByVal vData As Long)
mProductID = vData
End Property
Public Property Get productID() As Long
productID = mProductID
End Property
Public Property Let unitPrice(ByVal vData As Double)
mUnitPrice = vData
End Property
Public Property Get unitPrice() As Double
unitPrice = mUnitPrice
End Property
Public Property Let quantity(ByVal vData As Integer)
mQuantity = vData
End Property
Public Property Get quantity() As Integer
quantity = mQuantity
End Property
Public Property Let discount(ByVal vData As Single)
mDiscount = vData
End Property
Public Property Get discount() As Single
discount = mDiscount
End Property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment