12-05-2025, 03:09 AM
It's fine. The loop should be in the sub's scope. When you exit the sub everything is cleared except for static variables. If you do it with a function make sure you set the return value first.
|
Exiting sub while inside a loop
|
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Exiting sub while inside a loop - by PhilOfPerth - 12-05-2025, 01:55 AM
RE: Exiting sub while inside a loop - by CMR - 12-05-2025, 03:09 AM
RE: Exiting sub while inside a loop - by SMcNeill - 12-05-2025, 03:36 AM
RE: Exiting sub while inside a loop - by PhilOfPerth - 12-05-2025, 04:41 AM
RE: Exiting sub while inside a loop - by Pete - 12-05-2025, 08:24 AM
RE: Exiting sub while inside a loop - by PhilOfPerth - 12-05-2025, 09:40 AM
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Do Loop, Sleep and Mouse Button | Dimster | 5 | 579 |
09-06-2025, 12:57 PM Last Post: Dimster |
|
| Using modulo to loop through lists | fistfullofnails | 3 | 708 |
09-03-2025, 11:50 PM Last Post: fistfullofnails |
|
| What is wrong with this for/next loop | Helium5793 | 6 | 1,120 |
04-15-2025, 05:11 PM Last Post: Kernelpanic |
|
| Question on ln in a for/next loop | Dimster | 13 | 2,181 |
09-13-2024, 11:07 PM Last Post: Kernelpanic |
|
|
|
Flickering of the screen due to images and text in a loop | Delsus | 8 | 1,477 |
09-08-2024, 07:18 AM Last Post: Delsus |