Whenever I use 'Dim' to declare an object, Gambas gives me a syntax error, but when I change 'Dim' to 'Public' or 'Private' it works fine. Why is this? Am I doing something wrong?