What is the syntax for creating a method?
Posted: August 3rd, 2010, 10:48 am
What is the syntax for creating a method?
To show you roughly what I mean, newgui <name> [] creates a gui. But I want to run a block of code that doesn't have a gui, but does have a name.
What is the syntax for:
1. Creating the method (e.g. in C++ it would be something like void <name> {etc.})
2. Calling the method (e.g. in C++ it would be <name>();)
To show you roughly what I mean, newgui <name> [] creates a gui. But I want to run a block of code that doesn't have a gui, but does have a name.
What is the syntax for:
1. Creating the method (e.g. in C++ it would be something like void <name> {etc.})
2. Calling the method (e.g. in C++ it would be <name>();)