General Help regarding HMG, Compilation, Linking, Samples
Moderator: Rathinagiri
AUGE_OHR
Posts: 2117 Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Post
by AUGE_OHR » Sat Nov 27, 2021 9:27 pm
hi,
MICROVOLUTION wrote: ↑ Sat Nov 27, 2021 3:15 pm
Code: Select all
C:\MVinfo\hmg.3.5\include\i_MsgBox.ch(20) Warning W0002 Redefinition or duplicate definition of #define MB_USERICON
you have "dupe" #define so EXCLUDE *.CH from *.PRG
MICROVOLUTION wrote: ↑ Sat Nov 27, 2021 3:15 pm
Devo "deixar isso para lá", e atentar apenas aos erros do meu PRG, como por exemplo:
Code: Select all
I:\MVinfo\MIGRAR\SiCCA\SiCCA371\sci10000\pci10000.prg(265) Warning W0001 Ambiguous reference 'LGUI'
colocar MEMVAR LGUI no início desse PRG e assim sucessivamente, até eliminar todos os "avisos" e eliminar o -W2 e o -es2 do PRG?
if you have a PUBLIC or PRIVATE you must declare it as MEMVAR "on Top" of each *.PRG
have fun
Jimmy
Claudio Ricardo
Posts: 367 Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina
Post
by Claudio Ricardo » Sat Nov 27, 2021 11:57 pm
Este lenguaje es muy flexible, no conozco otro que admita redefinir variables una vez declaradas !
Está mal, no se debe hacer, es una mala práctica, Etc.... Pero es posible ! y ahi va un ejemplo:
Attachments
Prueba_Variable.zip
(1.42 MiB) Downloaded 77 times
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162