Converting Strings into Manus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have all menu names defined in our win apps stored as strings in database.

I would like to know how can I convert these menu names into MENU when
application loads after llogin and enable/disable these menu based on user's
access rights which are also stored along with menu names in database.?

Table AccessRights

User ID MenuName Enable
 
ABB said:
I have all menu names defined in our win apps stored as strings in
database.

I would like to know how can I convert these menu names into MENU when
application loads after llogin and enable/disable these menu based on
user's
access rights which are also stored along with menu names in database.?

Set up a hasthable that contains (key, 'MenuItem') pairs. Then you can
easily lookup an item by its name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top