N
NotYetaNurd
Please help me with the following snippet
float withdrawal=(objgetWithdrawal is float)? (float)objgetWithdrawal :0;
float expence= (objgetSpending is float)? (float)objgetSpending :0;
lblBal.Text="Current Balance = Rs." +
(withdrawal-expence) > 0.0F? //here i am getting the error "Operator '>'
cannot be applied to operands of type 'string' and 'float'"
(withdrawal-expence).ToString():"Error Check DB";
float withdrawal=(objgetWithdrawal is float)? (float)objgetWithdrawal :0;
float expence= (objgetSpending is float)? (float)objgetSpending :0;
lblBal.Text="Current Balance = Rs." +
(withdrawal-expence) > 0.0F? //here i am getting the error "Operator '>'
cannot be applied to operands of type 'string' and 'float'"
(withdrawal-expence).ToString():"Error Check DB";