Write an expression that attempts to read a double value from the TextBox textBox and stores it in a Double variable, x that has already been declared.

LANGUAGE: Visual Basic

CHALLENGE:

Write an expression that attempts to read a double value from the TextBox textBox and stores it in a Double variable, x that has already been declared.

SOLUTION:

x = CDbl(textBox.Text)