Post Reply 
Sharp BASIC anomaly
01-19-2023, 12:53 AM
Post: #1
Sharp BASIC anomaly
I stumbled upon something a bit strange playing around with few of my Sharp pockets.

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...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sharp BASIC anomaly - polbit - 01-19-2023 12:53 AM
RE: Sharp BASIC anomaly - Dave Britten - 01-19-2023, 06:45 PM
RE: Sharp BASIC anomaly - polbit - 01-19-2023, 07:43 PM



User(s) browsing this thread: 1 Guest(s)