Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Correcting the code
#16
(10-28-2023, 07:47 PM)bplus Wrote:
Quote:2. If I enter numbers in the range 1-999999 and confirm with the Enter key, such values should be included in the H# variable.

@SMcneill I like the backspace but what is wrong with 8's and 9's LOL do you think this is octal digits?

@Chris and for you sir or mam, # is the double type for floating point numbers you might like ! for long integer types, maybe even ~! to exclude negative numbers?

But if the entered number is 1,2,3,4,5,6 digits, it is to be confirmed with the Enter key. However, the 7-digit number is to be approved automatically.
To sum up, the entered numbers may have the following values: 0, 11, 232, 1254, 36547, 325478, 3254657.



I dunno. Reading the above, there was massive talk of 1, 2, 3, 4, 5, 6, and 7, and then my eyes skipped over the 8 in the 325478 example, so yeah... I was kinda working off an octal-base. LOL!

Change the SELECT CASE from "0" TO "7", to "0" TO "9", and it should be okay to go. That's a simple enough debig that anyone should be able to catch/fix it. Big Grin

Too many long nights here, with eyes blurring over ancient, esoteric code from the 1970s for me in this last week. My comprehension seems to be only about 30% of normal right now. I needs massive sleeps and even more massive coffees after, to get back on track! LOL!
Reply


Messages In This Thread
Correcting the code - by Chris - 10-27-2023, 07:19 PM
RE: Correcting the code - by bplus - 10-27-2023, 08:28 PM
RE: Correcting the code - by SMcNeill - 10-27-2023, 09:31 PM
RE: Correcting the code - by Chris - 10-28-2023, 06:34 AM
RE: Correcting the code - by SMcNeill - 10-28-2023, 01:46 PM
RE: Correcting the code - by Stuart - 10-28-2023, 10:43 AM
RE: Correcting the code - by Chris - 10-28-2023, 11:34 AM
RE: Correcting the code - by Chris - 10-28-2023, 11:49 AM
RE: Correcting the code - by bplus - 10-28-2023, 12:55 PM
RE: Correcting the code - by Chris - 10-28-2023, 02:13 PM
RE: Correcting the code - by bplus - 10-28-2023, 02:46 PM
RE: Correcting the code - by SMcNeill - 10-28-2023, 06:18 PM
RE: Correcting the code - by Chris - 10-28-2023, 07:44 PM
RE: Correcting the code - by bplus - 10-28-2023, 07:47 PM
RE: Correcting the code - by SMcNeill - 10-28-2023, 09:48 PM
RE: Correcting the code - by bplus - 10-28-2023, 07:51 PM



Users browsing this thread: 1 Guest(s)