General discussion

Locked

CONVERT FROM TEXT TO DOUBLE IN VB.NET

By TheRook ·
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 conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by TheRook In reply to CONVERT FROM TEXT TO DOUB ...

Point value changed by question poster.

Collapse -

by amolj In reply to CONVERT FROM TEXT TO DOUB ...

try following soln
dblLength = cType(txtLength,Double)

/*dblLength variable gets numeric value*/

Collapse -

by TheRook In reply to

Poster rated this answer.

Collapse -

by TheRook In reply to CONVERT FROM TEXT TO DOUB ...

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums