i have decleared all variables as double.
goldkaatinratti = (Val(txtbox_tolagoldweight.Text * 96) + Val(txtbox_mashagoldweight.Text * 8) + Val(txtbox_rattigoldweight.Text)) * 8 / 96
but when i leave the textboxes empty it gives ma the error (Conversion from string "" to type 'Double' is not valid.)
i CANNOT give this statement as this all ruins my future calculation.
'If txtbox_tolagoldweight.Text = "" Then ' txtbox_tolagoldweight.Text = 0 'End If 'If txtbox_mashagoldweight.Text = "" Then ' txtbox_mashagoldweight.Text = 0 'End If 'If txtbox_rattigoldweight.Text = "" Then ' txtbox_rattigoldweight.Text = 0 'End If