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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement