Alan,
If you enable 'Memvar' support and enable 'Undeclared memvar' support then this should work without any declarations, but I would not recommend that. It will produce code that is much less efficient
The least that you should do is declare them locally.
But it is much better to either declare the type yourself or use the VAR syntax and let the compiler determine the type.
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu