DoSomeTimes:
code block 1
DoOften:
code block 2
Return
The above structure lets you have two separate entry points with a single return. I use this structure when I want to recalibrate a sensor for example.
Calling GOSUB DoOften gets the result of the sensor.
Calling GOSUB DoSomeTimes starts with a calibration routine then gets the results of the sensor.
your mileage may vary but the idea works for me.
HTH
BrianT




Bookmarks