07-08-2023, 09:30 PM
(07-07-2023, 01:18 AM)PhilOfPerth Wrote: From the WIKI: the CHR$ function returns the character associated with a certain character code as a STRING
and: Valid ASCII code% numbers range from 0 to 255
So why does this not work:
For a = 129 To 255
Print a; Chr$(a)
Sleep 1: Cls: Next
Hi PhilOfPerth
after all these excellent answers to your question
I add my two cents about your code posted:
Code: (Select All)
For a = 129 To 255
Print a; Chr$(a)
Sleep 1: Cls:Next '<--- here there is your bug
' you wait 1 second or a keypress event and then clearscreen and then you make another cycle od Next loop
' so you get only one row of output for each second... 126 seconds to wait watching each second one character and when
' the program ends you see nothing because the last instruction is CLS
I must remember that some ASCII code are not printable but you can use ControlCHR to print
ControlCHR wiki
That's all.
Thanks, I am glad to see so professional posts.