Skip to content

Variables and functions not found when they really are there #79

@jgharston

Description

@jgharston

Using test program at http://mdfs.net/temp/vdata.zip

Unzip, will give:
ViewData Acorn tokenised BASIC program
0 Teletext page file

From Brandy, CHAIN "ViewData". Teletext test page displayed ok. Press Escape. Gives error:
Cannot find function 'FNerr'
LIST
Program has vanished.
LOAD "ViewData"
LIST 1140,1160 - the function definition is there.
PRINT FNerr
Cannot find variable 'flg%' at line 1150
Ok. flg%=0:PRINT FNerr
Cannot find variable 'flg%' at line 1150
Yerwot???

If I edit line 1150, delete flg% then retype it, doing flg%=0:PRINT FNerr works. If I RUN the program it goes back to the initial problem, FNerr not found, program vanishes.

I'm trying to track down what is causing this and trying to create a minimum test case.

Matrix v1.22.10 (MinGW/x86-32/SDL) 14 Feb 2021

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions