EJones01 Posted December 7, 2023 Posted December 7, 2023 Its common practice to comment out code when testing, but I can't find an easy way to do this? Currently I have to copy a program and then delete lines....but thats very slow as once deleted I have to copy again. Any help would be appreciated, thanks
DennisC Posted December 8, 2023 Posted December 8, 2023 3 hours ago, EJones01 said: Its common practice to comment out code when testing, but I can't find an easy way to do this? Currently I have to copy a program and then delete lines....but thats very slow as once deleted I have to copy again. Any help would be appreciated, thanks There is no way to comment out commands in a program. Best you can do is duplicate the program, make changes you want to test and then disable the original program.
EJones01 Posted December 8, 2023 Author Posted December 8, 2023 Any chance this can be added in the future? I did see this requested a few years ago and think it would be a welcome addition. 1
paulbates Posted December 8, 2023 Posted December 8, 2023 Another option, which I use, is to add a comment where the line should go and either type the line in, or a short reminder of what should be there. This helps me during final 'tweaking' which I'm doing that now on several programs
RRalston Posted December 8, 2023 Posted December 8, 2023 First, I agree, a simple way to comment out line(s) of code would be nice, but I have used the following method with success. Check out the last comment in this thread:
Solution EJones01 Posted December 8, 2023 Author Solution Posted December 8, 2023 1 hour ago, RRalston said: First, I agree, a simple way to comment out line(s) of code would be nice, but I have used the following method with success. Check out the last comment in this thread: OK...so Repeat 0 times - stops the next lines running Repeat 1 times - and this starts running lines after this
larryllix Posted December 9, 2023 Posted December 9, 2023 OK...so Repeat 0 times - stops the next lines running Repeat 1 times - and this starts running lines after thisNo. Repeat 0 times will execute it once anyway. That syntax is messed up.Replace the line with WAIT 0 SECONDS.Sent from my SM-G781W using Tapatalk
Recommended Posts