This just drove me nuts for over an hour. I was using a value in a UDT in a more complex way, but I broke it down into a simple example.
***NOTE the missing "." in the UDT as well as the "print" statement.
type MyType
x as string
y as word
endtype
dim MyVar(10) as MyType
MyVar(10).x = "Hello"
MyVar(10)y = 11223344
print MyVar(10).x;: print " ";: print MyVar(10)y
wait key
end
Now if you compile & run that,, you'll see the result, but the program won't end properly.
What I also found strange is I would have thought this next example would get caught by the compiler or print a value of 0.
***Note: Now the only missing "." is in the "print" statement.
type MyType
x as string
y as word
endtype
dim MyVar(10) as MyType
MyVar(10).x = "Hello"
MyVar(10).y = 11223344
print MyVar(10).x;: print " ";: print MyVar(10)y
wait key
end
Your signature has been erased by a mod please reduce it to 600 x 120.
