nicole200718
Active member
- Joined
- Feb 2, 2011
- Messages
- 35
- Programming Experience
- Beginner
I get this error: Conversion from string "" to type 'Decimal' is not valid. Here is where the error is happening please help?
decLarborCharge = CDec(txtLaborCharge.Text)
and here is the whole function that i have it in:
Function OtherCharges() AsDecimal
' This function returns the cost of labor and parts.
Dim decLarborCharge AsDecimal
decLarborCharge = CDec(txtLaborCharge.Text)
Return decLarborCharge
EndFunction
decLarborCharge = CDec(txtLaborCharge.Text)
and here is the whole function that i have it in:
Function OtherCharges() AsDecimal
' This function returns the cost of labor and parts.
Dim decLarborCharge AsDecimal
decLarborCharge = CDec(txtLaborCharge.Text)
Return decLarborCharge
EndFunction