View Single Post
  #10 (permalink)  
Old 05-19-2008, 02:20 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

The problem is with "lblTotal.Text". It is blank by default which the optimising compiler cannot convert to a number and so errors. Set the text to "0" and it works.

You didn't show this line in your code snippet "precototal=lblTotal.Text+precoParcial"
Reply With Quote