dddean@bluemoon.uucp (David D. Dean) (03/01/91)
Hello :-) Don't you just hate it when you are programing in ATARI BASIC, and you have to insert something where it cannot go? I DO!!! That's why I'm looking for a program that would allow me to easily renumber my program, and add space between areas that are crammed. I have seen some renumbering programs, but they seem to do only that.. renumber. The one I'm looking for would also change the goto statements to coorespond to the chaning of the line numbers. EX: BEFORE: 106 GOTO 106 AFTER: 110 GOTO 110 NOT: 110 GOTO 106 See my delema? It is good for the program to actually add more room, but it is a pain-in-the-neck to have togo back and retrace my program to re-align my GOTO/GOSUB/RESTORE statements... Any help is appreciated! David D. Dean, President "Living in a 3-D world." Explorer Post 891 AT&T Bell Laboratories Columbus, Ohio dddean@bluemoon.uucp **** Any opinions are that of the author, and NOT of AT&T ****
snyder@brahms.udel.edu (Mayleen G Snyder) (03/01/91)
i used to have the same problem....i got unhappy about it and wrote a prg to open a text file change the line numbers and all and then rewrite the prg to another file... i would look it up but i think i erased it when i got UNIX for a '386... (p.s. i also use action wich is better than atari basic....and not much different...) (i will look for it anyway...never know what i might find....) Sloopy X. Malibu snyder@brahms.udel.edu (one of the few atari users in northern DE....)
gdtltr@brahms.udel.edu (root@research.bdi.com (Systems Research Supervisor)) (03/02/91)
In article <19211@brahms.udel.edu> snyder@brahms.udel.edu (Mayleen G Snyder) writes: =>i used to have the same problem....i got unhappy about it and wrote a prg to =>open a text file change the line numbers and all and then rewrite the prg to another file... =>i would look it up but i think i erased it when i got UNIX for a '386... =>(p.s. i also use action wich is better than atari basic....and not much different...) => There do exist a few different renumbering programs. I have seen a couple binary routines that sit resident in RAM and catch RENUM commands when typed at the keyboard. There is also one that you ENTER into your program around line 30000. You then GOTO 30000 and it renumbers the program and LISTs it to disk (or tape, if you are a masochist.) I used to have these guys sitting around, and I might still, but my 130XE is not functioning properly at the moment. But there is hope. I think one or two of these things were Antic/ANALOG creations. You might also look into BASIC XE. It has a renumber command built in. Turbo BASIC XL might as well, but I don't know. It is worth looking into, but the later doesn't work with SpartaDOS (except for SDX w/extended RAM). Gary Duzan Time Lord Third Regeneration -- gdtltr@brahms.udel.edu _o_ ---------------------- _o_ [|o o|] Two CPU's are better than one; N CPU's would be real nice. [|o o|] |_o_| Disclaimer: I AM Brain Dead Innovations, Inc. |_o_|
tribe@ted.cs.uidaho.edu (Mr Duane Tribe Esq) (03/02/91)
In article <yP64X2w163w@bluemoon.uucp>, dddean@bluemoon.uucp (David D. Dean) writes: ... >That's why I'm looking for a program that would allow me to easily >renumber my program, and add space between areas that are crammed. ... >See my delema? It is good for the program to actually add more room, but >it is a pain-in-the-neck to have togo back and retrace my program to >re-align my GOTO/GOSUB/RESTORE statements... Turbo BASIC XL has a renumber command: RENUM {first line to change}, {start number}, {increment} It renumbers all references. But watch out for computed GOTO's. A line like 100 GOTO 100+X*10 will be just partially renumbered by "RENUM 100,1000,5" to 1000 GOTO 1000+X*10 Turbo provides logical line number references, better flow control (like REPEAT-UNTIL, IF-THEN-ELSE, etc...) and procedures (withOUT parms or local vars :'-( ), more free memory and about 3 TIMES faster and is FREE on the Atari archive or local BBS so you really should switch! (if you use a non-XL/XE, get "frost" basic instead) -- Duane Tribe (tribe@ted.cs.uidaho.edu) "I request unanimous consent to revise and extend my remarks"