Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limitations
Message
From
11/07/2002 17:46:47
 
 
To
09/07/2002 19:57:38
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00676849
Message ID:
00677777
Views:
23
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
Map
View

Click here to load this message in the networking platform