Trouble with very simple code

I’m using Introduction To Programming PDF file and am in the section dealing with the UpDownArrows control. I am to put the following code in for the Down event of an instance of this control:

Dim i As Integer i = CDbl(TextField1) i = i - 1 TextField1.Text = Str(i)

When I do that and run the app, I am stopped out at line 2 above. The following is highlighted:

i = CDbl

I am told “There is more than one item with this name and it’s not clear to which this refers.” Seems odd to me.

Running version 2015 release 3 on Mac OS X.

I think you’re looking for:

i = CDbl(TextField1.text)

Oops! Thanks!

That was fast.