Page 1 of 1

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

Posted: Fri Aug 07, 2020 3:35 am
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

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

Posted: Fri Aug 07, 2020 3:49 am
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