Since I come from a C programming background I tend to structure my programs. Ebasic itself does not enforce programming structure so you can write in a method which feels most confortable for you.
The structure I like to use is:
The structure you choose will most likely be different than mine but feel free to follow mine if you like.
The important thing is that you form your personal structure and be consistent in the way you build your programs.
You should decide on what structure you will be using, refine it, and stick to it.