General information
Category:
Forms & Form designer
Title:
Determining whether a control exists.
Hi,
Suppose I have a a control name like "pgf1.pag1.txtThis" and I want to know if it still exists on a particular open form. Is there an easy way to do this?
If it helps, the reason I have the control name is that I'm allowing the user to customize controls. When a form opens I look through a table to see if any of there any customized controls for this form. If so, I use the saved name to create a control object and then customize away. However, I'd like to make sure the control actually exists without having to parse out the name and doing a PEMSTATUS on each level. Being a VFP newbie, I can't figure out a better way.
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only