Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
FoxPro Windows
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01094256
Message ID:
01094419
Vues:
14
_MFILE is a Visual FoxPro system variable that is the value of the menu ID for the File menu. Look under the "System Menu Names" topic in the Visual FoxPro help file.

What the MRKBAR takes as its parameters is the menu name and then either an item number (positional index) or a item name. In this case I would say that knCareer is a number to an item that doesn't exist. Such as, if knCareer had a value of 12 and there were only 11 items on the File menu.

>I'm getting the following error message, and do not know what it means or what to do to fix it.
>
>Also, what is _mfile? is the value -20478 a valid and likely correct value?
>
>All the menu items seem to function properly except for the items that are supposed to have check marks. All the rest of the menu (many other items) are unaffected, with the caviot that after an item concludes it's execution the menu refreshes, with sets a couple of check mark items... again throwing a related area on a MRKBAR line.
>
>Any help would be appreciated.
>
>Rick
>
>------
>Error # : 1612
>Message : No such menu/item is defined.
>Line : IF !MRKBAR('_mFile', knCareer)
>Program : PROFILE I:\DEVELOP\OIS4\SRC\PROFILE.APP
>ON...
>I:\DEVELOP\OIS4\SRC\START.APP
>I:\DEVELOP\OIS4\SRC\OIS4MAXI.APP
>I:\DEVELOP\OIS4\SRC\RICK.APP
>
>Line # : 526
>------
>
>
>
>
>_mfile is -20478
>knCareer is 16
>
>*Line# Code
>*-------------------------------
>525	CASE do_what == 'CAREER'
>526		IF !MRKBAR('_mFile', knCareer)
>527			SET MARK OF BAR knCareer      OF _mFile TO .T.  && turn on Career Counsellor
>528			store .t. to glCareer
>529			SET MARK OF BAR kn720         OF _mFile TO .F.  && turn off 720 Composite
>530			SET MARK OF BAR knWorkshop    OF _mFile TO .F.  && turn off WorkShop
>531			SET MARK OF BAR knMixedGraphs OF _mFile TO .F.  && turn on MixedGraphs
>532			store .f. to gl720, glWorkShop, glMixedGraphs, glNormal
>533		ELSE
>534			SET MARK OF BAR knCareer OF _mFile TO .F.  && turn off Career Counsellor
>535			store .f. to glCareer
>536			store .t. to glNormal
>537		ENDIF
>538	
>538	CASE do_what == 'SPANISH'
>
>
>My menu starts out with a "File" menuitem
>under "File" are:
>"New Profile" CTRL+N
>"Open" CTRL+O
>"Close Profile"
>""
>"Save As..."
>"--------------" <--- seppartion line
>"Print Both Graphs" CTRL+P
>"Print Old Graphs" CTRL+K
>"Print New Graphs"
>"Fax"
>"Re-Print Profile Questions"
>"Print Expanded Profile"
>"Print NP"
>"Print Audit Copy"
>"--------------" <--- seppartion line
>"Career Counselor"
>"Spanish Profile"
>"720 Composite"
>"Workshop Profile"
>"Mixed Graphs"
>"--------------" <--- seppartion line
>"New Graphs Only"
>"Print Old On All Graphs"
>"Print Old Graph With Upgrade"
>"Print Old Graph With Comparison"
>"Preview Only"
>"&cEzedit_PDF" variable assignment determined at run-time
>"&cNP_PDF" variable assignment determined at run-time
>"Print Work Place Assessment"
>"Exit"
>
>
>Items "Career Counselor" and below are items that are checkmark items
>except for
>"&cEzedit_PDF" variable assignment determined at run-time
>"&cNP_PDF" variable assignment determined at run-time
>"Print Work Place Assessment"
>"Exit"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform