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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only