SP4CEBAR 2023-01-02 18:20 (Edited)
Test if this bug is present on your device, it should say:
Variable Not Initialized
'THIS LINE OF CODE APPEARS ON YOUR ERROR MESSAGE
where it's showing a comment instead of the line that has an error
If the bug is not present on your device, it should say:
Variable Not Initialized
CALL TEST(A)
The bug first appeared in a program with a lot of DATA "STRINGS"
I stripped the program and the remaining code still contains the bug
The wrong line can be shifted up and down by adding or removing code
This bug isn't that bad because the "go to error" button still works fine
I recently updated my iPad 6 to iPadOS 16
The program was created on windows, and modified on my iPad
GAMELEGEND 2023-01-02 19:09
CALL TEST(A) is the line with the error because there is no variable named A.
GAMELEGEND 2023-01-02 19:10
A = 10
CALL TEST(A)
SUB TEST(A)
END SUB
GAMELEGEND 2023-01-02 19:21
To be good at finding errors when it comes to software you first have to accept the fact that you most likely caused the error, or you just have to wait for your brain fart to end. :)
was8bit 2023-01-03 03:41 (Edited)
Something to remember, copying text into your program can introduce characters that are invisible to your screen but are secretly there and they will continue to cause errors....
I found this out when using a regular text editor and or copying code from an online page, and pasting it into LowRes .... you basically need to manually retype the code as recopying and pasting the code will copy the invisible characters and will continue to cause errors...
You're not going to be able to highlight and delete the invisible characters once they get into your LowRes code...
... this may not apply to your problem, but just in case you run into it because in that situation lowres gets confused and cant help you...
SP4CEBAR 2023-01-03 08:45 (Edited)
@gamelegend I know, but this staged program error together with something unknown reveals an NX error, so the error message on your devices says:
Variable Not Initialized
CALL TEST(A)
what type of device did you use?
On my iPad it says:
Variable Not Initialized
'THIS LINE OF CODE APPEARS ON YOUR ERROR MESSAGE
SP4CEBAR 2023-01-03 08:50
@was8bit I originally copied text from notepad to NX, it shouldn't contain any really special characters other than linebreaks, but this was probably it, thank you!
was8bit 2023-01-03 10:28 (Edited)
:)
I appreciate NX giving error message when a variable hasnt been assigned a value ... in original i often mis typed a variable name and the program would behave oddly or worse, yet original lowres would never alert you, so i often wasted tons of time dissecting my code constantly.... it got to the point that i had to test my code every time i added a line or two as then i only had to check those last lines if i had a variable type (being slightly dyslexic doesnt help)
With NX, i immediately get notified that i typed in a variable name incorrectly, and which one... very helpful :D
Timo 2023-01-03 12:11
Yes, this may happen with different end of line encodings between platforms.