I need to grant access to a particular menu option depending on which user has logged in. I am planning to create a DBF file which will contain the menu options that accessible by each userid. Then at the time of running the MPR file, I can modify the SKIP FOR clause if the userid has access to that menu or not

To accomplish this task, I need to know if there is a unique identifier in the MNX file that is created by Menu Builder. I want to tie in the userid with the key for MNX file for the purpose of lookup. I browsed the MNX file but I am a little confused about the records in that file. For some reason it has two records for every menu option that I created. Can someone throw some more light on the structure and contents of MNX file and suggest how best I can do what I want to do

Thanks a lot....

Subhash.

Re: Unique Identifier for .MNX file by Rick

Rick
Tue Mar 02 18:15:14 CST 2004

We've found that it's best to use the Comment field to insert a unique =
ID for all the menu items. It isn't hard to keep these up-to-date using =
a Projecthook and an external table to keep track of the numbers in use.

Note: There is a great deal of information on the most all the file =
structures in the directory - 'C:\Program Files\microsoft visual foxpro =
8\Tools\Filespec\' - there are similar ones for VFP 6 & 7. This =
directory includes tables of the info and even reports to print the =
details.

Rick

"Subhash Chopra" <anonymous@discussions.microsoft.com> wrote in message =
news:BF563D34-A4F3-4FA3-BE01-77E746E796DF@microsoft.com...
> I need to grant access to a particular menu option depending on which =
user has logged in. I am planning to create a DBF file which will =
contain the menu options that accessible by each userid. Then at the =
time of running the MPR file, I can modify the SKIP FOR clause if the =
userid has access to that menu or not.
>=20
> To accomplish this task, I need to know if there is a unique =
identifier in the MNX file that is created by Menu Builder. I want to =
tie in the userid with the key for MNX file for the purpose of lookup. I =
browsed the MNX file but I am a little confused about the records in =
that file. For some reason it has two records for every menu option that =
I created. Can someone throw some more light on the structure and =
contents of MNX file and suggest how best I can do what I want to do.
>=20
> Thanks a lot.....
>=20
> Subhash.