Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
INKEY$ doesn't work with fixed length strings
#16
(07-31-2024, 02:35 PM)justsomeguy Wrote: I'm going to disagree with you Steve. I've plead my case, this is not a poop hill I'm going to die on.

So let me ask: 

Code: (Select All)
DIM a AS STRING * 8
a = "12345"

FOR i = 1 to 10
   PRINT a;
NEXT

In the above, how many instances of a is going to appear on a line with a width of 40 characters?   How much space does each of those strings take on the screen?  Are they all going to be side-by-side, as "12345123451234512345"?  Or would you expect them to be, "12345   12345   12345   12345   "?

The answer there should be what you'd expect LEN() to return for you.
Reply


Messages In This Thread
RE: INKEY$ doesn't work with fixed length strings - by SMcNeill - 07-31-2024, 02:44 PM



Users browsing this thread: 5 Guest(s)