Expand|Select|Wrap|Line Numbers
- Dim LaptopPrice As Integer
- Dim HDDPrice As Integer
- 'Prices of Laptops
- Const LongitudePrice As Integer = 200
- Const PerspironPrice As Integer = 350
- Const IncisionPrice As Integer = 500
- 'Prices of Hard Drives
- Const 40GBDrivePrice As Integer = 0
- Const 80GBDrivePrice As Integer = 80
- Const 120GBDrivePrice As Integer = 120
- If optLongitude.Value = True Then
- LaptopPrice = LongitudePrice
- ElseIf optPerspiron.Value = True Then
- LaptopPrice = PerspironPrice
- ElseIf optIncision.Value = True Then
- LaptopPrice = IncisionPrice
- ElseIf opt40GBDrive.Value = True Then
- HDDPrice = 40GBDrivePrice
- ElseIf opt80GBDrive.Value = True Then
- HDDPrice = 80GBDrivePrice
- ElseIf opt120GBDrive.Value = True Then
- HDDPrice = 120GBDrivePrice
- Else
- MsgBox "Please make a selection", vbExclamation, "Make Selection"
- End If
I tried:
lblSum.Caption = LaptopPrice + HDDPrice
lblSum.Caption = LaptopPrice & HDDPrice
None of these work
Please help, thanks in advance!