Page 3 of 3

Re: Undeclared Variables in a .PRG

Posted: Thu Mar 31, 2022 8:20 pm
by AUGE_OHR
hi,

did you get
Ambiguous reference, assuming memvar '_HMG_SYSDATA'
it is the same as
Ambiguous reference '_HMG_MAINWINDOWFIRST'
so the Solution is also the same

Code: Select all

MEMVAR _HMG_SYSDATA, _HMG_MAINWINDOWFIRST

Re: Undeclared Variables in a .PRG

Posted: Fri Apr 01, 2022 10:22 am
by Claudio Ricardo
Hello Jimmy, The alert disappears, but I am left with the question of why ?
They are not variables that I created, and those of the system are declared in their respective internal functions.
It does not matter as long as everything works well, but I wanted to learn more.

Very grateful for all your contributions and help !

Re: Undeclared Variables in a .PRG

Posted: Fri Apr 01, 2022 10:31 am
by apais
Hidden in its commands, HMG is using non declared public variables.
The MEMVAR directive declares them, so the warning vanishes.