Re: How to write this simple program? converting to numbers???
- From: Spam Catcher <spamhoneypot@xxxxxxxxxx>
- Date: Wed, 17 Jan 2007 16:44:46 GMT
"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)
.
- References:
- Prev by Date: Re: Common Language Runtime Debugging Services
- Next by Date: Re: Is there an alternative to a combobox for selecting -- VB2005?
- Previous by thread: How to write this simple program? converting to numbers???
- Next by thread: Re: How to write this simple program? converting to numbers???
- Index(es):