How to? gosub and label search

Oct 18, 2008
345
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?
 
Oct 18, 2008
345
2
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?
 
Aug 9, 2009
286
1
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
 

rconn

Administrator
Staff member
May 14, 2008
12,425
153
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