Re: How to write this simple program? converting to numbers???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Ron" <pts4560@xxxxxxxxx> wrote in news:1169051101.266111.300510@
51g2000cwl.googlegroups.com:


I then have a lable that I want the surface area to be displayed in
called lblsurface

here is my logic.

lblsurface.text = (4 * 3.14 * txtradius * txtradius)

I am getting a conversion error.
I dim txtradius as double
dim lblsurface as double

txtRadius is a textbox right?

In that case you should be doing:

Dim _Radius as Double = Ctype(txtRadiu.text, Double)
.