I have many lines of code with several Dimensions, Defines and Comments along with large sub routines. Is there a way to bookmark the Main Loop Area and somehow navigate to it like you would a sub routine? on the left in the IDE?
thanks,
Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In GCSTUDIO you can collapse all the code to just show the Sub/Functions etc. This can be automatically or section by section. GCSTUDIO remembers the state when you open and close the file.
In SynWrite. You can collapse sections but the state is not remembered.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could add a label called MainLoop: on the line preceding the start of the main loop. This label will show up in the Tree Panel in Synwrite. Double Click on it and it will take you to the start of the main control loop. Should work in a similar manner with GCSTUDIO/GCCode
Hello,
I have many lines of code with several Dimensions, Defines and Comments along with large sub routines. Is there a way to bookmark the Main Loop Area and somehow navigate to it like you would a sub routine? on the left in the IDE?
thanks,
Jeff
Yes.
In GCSTUDIO you can collapse all the code to just show the Sub/Functions etc. This can be automatically or section by section. GCSTUDIO remembers the state when you open and close the file.
In SynWrite. You can collapse sections but the state is not remembered.
You could add a label called MainLoop: on the line preceding the start of the main loop. This label will show up in the Tree Panel in Synwrite. Double Click on it and it will take you to the start of the main control loop. Should work in a similar manner with GCSTUDIO/GCCode
Example:
William
Last edit: William Roth 2022-08-03
That is my preferred method for large programs. Works in Geany's tree explorer too.
Thanks I tried your method and got rid of my sub main. Much more elegant!
MainLoop:
Do Forever...
Thanks!
I ended up placing the main loop in a Sub routine called Main. It is now listed at the top and is very easy to access!
Main()
Sub Main()
End Sub