Jump to content
Sign in to follow this  
Aditya

Check to see if a control exists

Recommended Posts

Aditya

Is there any method that when given a controlID will return saying whether the control exists or not? I am looking through the API for control methods I don't see any thing that is close to what I want. Is there some other way to achieve the same result?

Share this post


Link to post
Share on other sites
xavierh

You can use the command ControlGetHandle. If it exists, this will return the control handle (some non-zero numeric value), if it dies not, it will return a blank string and set @error to 1.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×