In school we use Visual Basic 2005 Express Edition for programming. As I'm only doing Int 2 (standard grade), the programs are still quite basic. However the following code generates an error:
Dim Counter as Integer
For Counter = 1 to 10
Form1.Print("Hello")
Next
As you can see, this is just a simple task to demonstrate fixed loops. Unfortunately 'Form1.Print("Hello")' causes a problem, and I've no idea why. I've tried 'Me.Print(...)' and 'Print(...)' and 'PrintLine(...)' and so on, but nothing has worked. Nor can I find any solution in the inbuilt help/search area.
It's probably something obvious and I'm being stupid, but on the off-chance that it's not, any help will be much appreciated eitherway.
Dim Counter as Integer
For Counter = 1 to 10
Form1.Print("Hello")
Next
As you can see, this is just a simple task to demonstrate fixed loops. Unfortunately 'Form1.Print("Hello")' causes a problem, and I've no idea why. I've tried 'Me.Print(...)' and 'Print(...)' and 'PrintLine(...)' and so on, but nothing has worked. Nor can I find any solution in the inbuilt help/search area.
It's probably something obvious and I'm being stupid, but on the off-chance that it's not, any help will be much appreciated eitherway.