wondery Posted October 20, 2003 Posted October 20, 2003 i want lblSubTotal.Text-lblAdvance.Text but it not allow me .... i dont know y ?? please help Quote
*Experts* mutant Posted October 20, 2003 *Experts* Posted October 20, 2003 If you are trying to subtracts string then it wont work. Convert those to numbers first. Quote
Administrators PlausiblyDamp Posted October 20, 2003 Administrators Posted October 20, 2003 What error does it give? have you tried converting the label contents to a number first? dim ans as double ans = double.Parse(lblSubTotal.Text) - double.Parse(lblAdvance.Text) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* Volte Posted October 21, 2003 *Experts* Posted October 21, 2003 Are you making sure that ans is a Double or some other data type which supports decimals? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.