What command can be used to find out if a control exists?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
jorge_riv
Posts: 86
Joined: Thu Nov 22, 2018 2:20 pm
DBs Used: DBF, MySQL,SQL SERVER, Oracle.

What command can be used to find out if a control exists?

Post by jorge_riv »

Necesito usar un comando que pueda saber si esta definido un control label,
Hay algina forma??
Antes de definir un Label, deseo saber si ya esta definido.
Gacias
-----------------
I need to use a command that can tell if a label control is defined,
Is there any way ??
Before defining a Label, I want to know if it is already defined.
Thank you
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: What command can be used to find out if a control exists?

Post by AUGE_OHR »

hi,

have a look into c:\hmg.3.4.4\SOURCE\h_label.prg

Code: Select all

	If _IsControlDefined (ControlName,ParentForm)
		MsgHMGError ("Control: " + ControlName + " Of " + ParentForm + " Already defined. Program Terminated")
	endif
have fun
Jimmy
Post Reply