really silly but i really dont know!! how to +-x% in c#????

wondery

Active member
Joined
Sep 12, 2003
Messages
43
i want lblSubTotal.Text-lblAdvance.Text but it not allow me .... i dont know y ?? please help
 
What error does it give?

have you tried converting the label contents to a number first?

Code:
dim ans as double

ans = double.Parse(lblSubTotal.Text) - double.Parse(lblAdvance.Text)
 
Are you making sure that ans is a Double or some other data type which supports decimals?
 
Back
Top