This is interesting enough that in addition to the note I sent to the support department, I thought I'd add it here.
If it messed me up, it might mess up someone else, too:
#IF 0
' NAME Test4.bas
' Demo of Bug IN compiler NOT finding GLOBALs
8.20.99
#ENDIF
#COMPILE EXE
#DIM ALL
GLOBAL Qwerty AS ASCIIZ * 80
FUNCTION PBMAIN()AS LONG
DIM Qwerty AS LONG
Qwerty = 2 '<<< Not cool for a GLOBAL ASCIIZ
LOCAL H AS STRING
H = "Hello World"
MSGBOX H
END FUNCTION
Seems to me when I try to DIM Qwerty AS LONG inside of PBMain, I should get an error:
466 Duplicate name definition - A SUB name, FUNCTION name, label name, or
variable name was defined more than once in your code. Check your program
and any include files for duplicate names and change one or both of them.
Or am I missing something?
MCM
If it messed me up, it might mess up someone else, too:
#IF 0
' NAME Test4.bas
' Demo of Bug IN compiler NOT finding GLOBALs
8.20.99
#ENDIF
#COMPILE EXE
#DIM ALL
GLOBAL Qwerty AS ASCIIZ * 80
FUNCTION PBMAIN()AS LONG
DIM Qwerty AS LONG
Qwerty = 2 '<<< Not cool for a GLOBAL ASCIIZ
LOCAL H AS STRING
H = "Hello World"
MSGBOX H
END FUNCTION
Seems to me when I try to DIM Qwerty AS LONG inside of PBMain, I should get an error:
466 Duplicate name definition - A SUB name, FUNCTION name, label name, or
variable name was defined more than once in your code. Check your program
and any include files for duplicate names and change one or both of them.
Or am I missing something?
MCM
Comment