Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limitations
Message
De
11/07/2002 17:46:47
 
 
À
09/07/2002 19:57:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00676849
Message ID:
00677777
Vues:
24
Hi Tracy,

Thanks for the tips. I encountered another problem. The first time I ran the form (Company.scx) the toolbar button works just fine. Then I ran another form (Employee.scx) and click on the navigation key. This time VFP gave me an error "Unknown member oNavigator". No matter which form I ran first, the second form gave me the same error.

This is what I have in my init() of the form class.

IF TYPE("_Screen.ActiveForm.oNavigator")="O" AND;
!ISNULL(_Screen.ActiveForm.oNavigator)
RETURN
ENDIF

SET CLASSLIB TO CURDIR() + "ABC.vcx" ADDITIVE
ThisForm.oNavigator=CREATEOBJECT("NavRecs")
ThisForm.oNavigator.Show
ThisForm.oNavigator.Dock(0)

This code is part on my initialization that I called and this is where the error popup.

IF TYPE("_SCREEN.ActiveForm")="O"
_SCREEN.ActiveForm.oNavigator.cmd_First.Enabled = .F.
_SCREEN.ActiveForm.oNavigator.cmd_Prev.Enabled = .F.
_SCREEN.ActiveForm.oNavigator.cmd_Next.Enabled = .F.
_SCREEN.ActiveForm.oNavigator.cmd_Last.Enabled = .F.
ENDIF

Am I missing a section of the code?

Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform