See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Program error
#12
This is the while loop version1 [FIXED] from the book, there is to be a version2 of this one later in the chapter 29 using 'continue' as well. I am tired for code now today, I can see version2 also has the same indentation errors and need the same fix as this version, haven't looked at the rest of it yet.

This one you select a menu option it displays it for 3 seconds,  and then it loops back to program to enter another option.I like it I think it could be made in to some nice programs.  The delay can be adjusted on Line 5 to more seconds.

Maybe there can be a $DELAY and a new line of $DELAY2 where 2 has a longer duration and then edit the sleep delay on line 28 to $DELAY2 , it might work, to have two different durations allowing for the more text to read on that option,  I'll try it tomorrow, as I am tired for code now.

[Image: while1.png]


[Image: while2.png]


There are 2 errors in the while loop code in the book, I fixed these.Both are indentation errors, these are on lines #9 and #17 they should not be indented like they are in the book, just type it like the screenshots then the program runs correctly.
Reply


Messages In This Thread
[SOLVED] Program error - by bitsnpcs - 02-15-2019, 10:11 AM
Re: [SOLVED] Program error - by firenice03 - 02-15-2019, 04:10 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-15-2019, 08:00 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-15-2019, 08:15 PM
Re: [SOLVED] Program error - by firenice03 - 02-15-2019, 11:10 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-15-2019, 11:28 PM
Re: [SOLVED] Program error - by firenice03 - 02-19-2019, 01:10 AM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 08:53 AM
Re: [SOLVED] Program error - by firenice03 - 02-19-2019, 04:42 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 08:51 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 10:17 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 11:07 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-20-2019, 01:55 AM
Re: [SOLVED] Program error - by firenice03 - 02-20-2019, 02:02 AM
Re: [SOLVED] Program error - by bitsnpcs - 02-20-2019, 02:16 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)