Hi, Derrick.
Ante has given you good advice.
The obvious answer to this part of your issue "how do I reuse the same piece of code without typing it over and over again." is to put the code into a method that can be called from wherever it is needed.
To do that, you'll need to get rid of the goto's and labels in your code.
If you want more than general advice in this regard, you would need to provide the code that needs to use the snippet you posted previously.
No comments:
Post a Comment