PC Review


Reply
Thread Tools Rate Thread

Converting Strings into Manus

 
 
=?Utf-8?B?QUJC?=
Guest
Posts: n/a
 
      23rd Mar 2005
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
----------------------------------
1
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      23rd Mar 2005
"ABB" <(E-Mail Removed)> schrieb:
>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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting strings to numbers Big Bitty Microsoft Excel Programming 1 29th Apr 2010 03:29 PM
Converting Doubles to Strings nvx Microsoft C# .NET 3 28th Mar 2007 08:49 PM
Converting STRINGS into FORMULAS Dario Jardim Junior Microsoft Excel Misc 10 21st Dec 2003 12:52 PM
PN: Converting C Strings to managed strings Peter Nolan Microsoft VC .NET 0 20th Nov 2003 11:01 PM
converting strings to decimal Paul K Microsoft C# .NET 7 18th Nov 2003 01:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.