Basic question on correct language format
Hi,
Is there a best syntax for coding in Firewing?
For example you can dim your variables outside of a your main code loop, or in the middle of it. I did that in one section and included = 0 to initialize it to a starting value. But then found every time the code went past that line it set the var to 0, so it was not really initialising it, it was more a command.
I can code, (reasonably well) but I'm old school, from using Proton, all variables are up top (no local vars), initialise them in a initialize sub then all my subs and main loop at the bottom.
I'm finding now that I'm spending more time worrying about how it should be laid out and not actually writing code.
So can anyone point me to some resource that explains best practice how to layout my routines, where to place the var declarations, even when to make a routine a module and better still on how to properly cater for all the var types.
Many thanks in advance for any tips.
Thanks
Tim
Is there a best syntax for coding in Firewing?
For example you can dim your variables outside of a your main code loop, or in the middle of it. I did that in one section and included = 0 to initialize it to a starting value. But then found every time the code went past that line it set the var to 0, so it was not really initialising it, it was more a command.
I can code, (reasonably well) but I'm old school, from using Proton, all variables are up top (no local vars), initialise them in a initialize sub then all my subs and main loop at the bottom.
I'm finding now that I'm spending more time worrying about how it should be laid out and not actually writing code.
So can anyone point me to some resource that explains best practice how to layout my routines, where to place the var declarations, even when to make a routine a module and better still on how to properly cater for all the var types.
Many thanks in advance for any tips.
Thanks
Tim