Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I tell if an object (grid) is in use? 1

Status
Not open for further replies.

Kflasph

Programmer
Apr 8, 2002
65
US
I have a form that uses pageframes. On one of the pageframes depending on the users selection, I add a class grid. In the refreshing of the data, I release the form but sometime the grid has not been added so I get an error.
How can I tell if my grid is in use?

Thanks in advance,
Kflasph
 
I am running VFP 6 so I can't use Try / Catch.

Thanks anyway!
 

When you say "in use", do you mean you want to know if the grid exists on the form? If so, then you need something like this:

IF TYPE("MyForm.MyPageFrame.Page1.MyGrid") = "O"
* grid exists
ENDIF

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thank you , Thank you !!!
That did it!

KFlasph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top