Undeclared Variables in a .PRG

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Undeclared Variables in a .PRG

Post 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
have fun
Jimmy
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: Undeclared Variables in a .PRG

Post 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 !
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: Undeclared Variables in a .PRG

Post by apais »

Hidden in its commands, HMG is using non declared public variables.
The MEMVAR directive declares them, so the warning vanishes.
Angel Pais
Web Apps consultant/architect/developer.
Post Reply