I have the following program in debug mode @ line 21
program hello implicit none integer, dimension(2,2) :: Array type Test integer :: a integer :: b integer :: c end type Test integer::i type (Test) :: TestVariable i=1 Array(1,1) = 22 Array(1,2) = 2 Array(2,1) = 22 Array(2,2) = 25 TestVariable%a = 1 TestVariable%b = 2 TestVariable%c = 3 print *, Array(1,1) print *, Array(2,2) print *, TestVariable%b print *, ubound(Array) end program Hello
I am trying to evaluate a statement using the Command Window.
Debug.EvaluateStatement 1+1 Debug.EvaluateStatement i+1
The first line outputs a result of 2 while the second throws an error "Undefined address". The variable does however appear in the Locals window. Why will the statement not evaluate correctly?