01-19-2023, 12:53 AM
I stumbled upon something a bit strange playing around with few of my Sharp pockets.
The following code:
Executes correctly on PC-1500, however it fails on both EL-5500II and PC-G850VS. It appears the later two only recognize first seven characters in a string, despite being newer, so only the following works:
This might be a well-known fact, but figured I'd share as I found it interesting...
The following code:
Code:
10 P$ = "PASSWORD"
20 IF P$ = "PASSWORD" THEN PRINT "CORRECT"
Executes correctly on PC-1500, however it fails on both EL-5500II and PC-G850VS. It appears the later two only recognize first seven characters in a string, despite being newer, so only the following works:
Code:
10 P$ = "PASSWORD"
20 IF P$ = "PASSWOR" THEN PRINT "CORRECT"
This might be a well-known fact, but figured I'd share as I found it interesting...