How to? gosub and label search

Oct 18, 2008
339
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
339
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
237
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,404
152
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
Thread starter Title Forum Replies Date
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
JohnQSmith GOSUB Support 5
D Documentation Modifying GOSUB parameters Support 10
J How to? Speedup of gosub/return Support 8
fpefpe How to? Passing arg to gosub with white spaces Support 2
Stefano Piccardi issue: redirecting GOSUB output Support 11
C Documentation GOSUB quick help Support 6
M A problem with nested Gosub's/ExecStr's Support 14
I TCC crashes on gosub after long command line Support 0
G gosub variables Support 9
MikeBaas How to check if label exists? Support 3
S PDIR and @LABEL questions Support 4
A How to? Get Drive Letter From Label Support 3
electrotype Error using TCC: "Label not found" Support 6
R Button label is blank - 11.00.48 Support 0
John Posner Command grouping and GOTO label Support 9
Jeff Everything search doesn't work Support 16
old coot Is there a consistent way to do a single-key repeat search in the edit/debug IDE? Support 5
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Quick Search in eWriter Help Support 1
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
D Faster string search Support 8
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly Pipe into VIEW and search Support 12
G Extended directory search not working Support 4
rps How to? @search problem Support 2
M Documentation Q.Search doesn't support selection? Support 1
vefatica Keyword - instant search? Support 1
vefatica WAD Help Search broken? Support 3
Joe Caverly LIST /T (search for Text) Support 2
M Problem with Extended Search and non-ASCII characters in directories names Support 3
H FuzzyCD: JPSTREE vs. Everything Search Support 1
J Extended directory search has stopped working Support 9
fpefpe Documentation Search order Support 2
J Extended directory search - cure by renaming tcmd.ini Support 10
S Trouble accessing results of forum search Support 2
J Fixed IDE search keys don't work in TCMD 13.01.32 Support 3
G Find files but ignore file extension in search Support 2
J Initialise; Alias; Extended directory search Support 2
Frank is the search-function in VIEW working? Support 2
deleyd How does TCC search for a command? Support 2
J Extended directory search - spaces in names Support 5
J How does tcc search for perl*.dll Support 1
fpefpe @search[] function Support 3

Similar threads