CONVERT FROM TEXT TO DOUBLE IN VB.NET - TechRepublic
General discussion
September 13, 2005 at 07:06 AM
therook

CONVERT FROM TEXT TO DOUBLE IN VB.NET

by therook . Updated 20 years, 9 months ago

I’m working on a class project (VB.Net 2003). I’m trying to program my Calculate button, and in so doing I have to convert a field value from text to number (double). Here’s what I have so far:

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim pdblLength As Double
Dim pdblWidth As Double
Dim pdblHeight As Double
Dim pdblVolumeTotal As Double
txtLength = System.Convert.ToDouble

Please help!!!

Thanks,

This discussion is locked

All Comments