10-06-2012, 10:33 PM
You didn't end your Initialize function with an "end" statement.
Use indentation to help you - after every "function", "if", "for", indent by one tab more; after each end, indent one tab less. Also, you do not want to declare your functions inside other functions (that's an advanced topic and you don't need it yet).
Use indentation to help you - after every "function", "if", "for", indent by one tab more; after each end, indent one tab less. Also, you do not want to declare your functions inside other functions (that's an advanced topic and you don't need it yet).