How to? gosub and label search

Oct 18, 2008
354
2
The doc/help for gosub states that it searches for the label starting with the line after the gosub. So if I have a bat file that issues “gosub :foo” 1000 times will it search 1000 time or remember the line number that “:foo” is and for the next 999 call it knows what line in the bat file to goto or does it search for: foo on every gosub call?
 
thx for the info -- I just wrote a tool to extract the auto files from my ipod to the computer -- the bat file is over 100K and I have may gosub(s) to check and create folders --- I recall that BTM files are loaded --- can they be altered while running?
 
thx for the info -- I just wrote a tool to extract the auto files from my ipod to the computer -- the bat file is over 100K and I have may gosub(s) to check and create folders --- I recall that BTM files are loaded --- can they be altered while running?
No if its running in BTM mode. Yes if its running as a BAT file
 
thx for the info -- I just wrote a tool to extract the auto files from my ipod to the computer -- the bat file is over 100K and I have may gosub(s) to check and create folders --- I recall that BTM files are loaded --- can they be altered while running?

Might be more efficient to use library functions instead of GOSUB's.
 

Similar threads