Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Steve Dingle
  Where is Steve Dingle?
 Weybridge
 United Kingdom
 Steve Dingle
 To: Anil Sharma
  Where is Anil Sharma?
 ludhiana
 India
 Anil Sharma
 Tags
Subject: RE: Check then register Activex Ctrl
Thread ID: 196626 Message ID: 196656 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Active X Controls & OLE Automation
Date: Sunday, September 28, 2008 2:36:38 PM         
   


>
> Steve is it Work for u?
>
>
> 
> LOCAL loError,loObject,lFoundError as Logical
> TRY 
> loObject = CREATEOBJECT("xx.xx")
> 
> 		 Catch To loError
> 			lFoundError = .T.
>   
> ENDTRY
> IF lFoundError
> =MESSAGEBOX("Register the Control First",0+64,"Info")
> ENDIF
> 
> 

>
> Anil
> My Blog

Thanks Anil, I was saving that as last a resort (shoulda mentioned it). I hate to create an "error state" unless there is no other way to test and since the object is already part of the form I would be calling CREATEOBJ just to either trigger error or throw away object so was hoping for something a little more elegant

Thanks for the pointer in your other message to the DLL register fnctino, I will give them a look see

Steve Dingle
http://weblogs.foxite.com/SteveDingle/
www.dsbusinesssolutions.co.uk



COMPLETE THREAD
Check then register Activex Ctrl Posted by Steve Dingle @ 9/28/2008 8:58:50 AM
RE: Check then register Activex Ctrl Posted by Anil Sharma @ 9/28/2008 9:22:18 AM
RE: Check then register Activex Ctrl Posted by Steve Dingle @ 9/28/2008 2:36:38 PM
RE: Check then register Activex Ctrl Posted by Anil Sharma @ 9/28/2008 5:19:30 PM
RE: Check then register Activex Ctrl Posted by Steve Dingle @ 9/29/2008 8:37:49 AM
RE: Check then register Activex Ctrl Posted by Anil Sharma @ 9/28/2008 12:05:12 PM
RE: Check then register Activex Ctrl Posted by Stefan Wuebbe @ 9/28/2008 2:59:08 PM
RE: Check then register Activex Ctrl Posted by Steve Dingle @ 9/29/2008 8:36:05 AM
RE: Check then register Activex Ctrl Posted by tushar @ 9/29/2008 8:48:42 AM