Newbie question on converting

If have a text box named LengthTextField. I want to convert it to a double. It seemed that this cod should work:

Var PItemLength As Double

ItemLength = ItemTextField.

Some how I sent this while still writing…

Var ItemLength As Double

ItemLength = ItemTextField.

Basically there is no “ToDouble” for the ItemTextField text field. How should this be handled / converted?

thanks

Try

ItemTextField.Text.

Ok but I get

Type mismatch error. Expected Double, but got String
ItemLength = ItemTextField.Text

ItemTextField.Text.ToDouble

You had ended your question with a dot (waiting for auto-complete), so I ended my suggestion with the same. Scott was explicit.

2 Likes

Sorry, you are obviously correct and I need to watch my typing.