-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: saileshsaha
Message 2 in Discussion


Hi Ambrose,
I fear you can do that way using 
enumeration. Rather you can do the other way round because:
An enumeration type is a distinct type with named constants. Every 
enumeration type has an underlying type, which can be either byte, short, int, 
or long.
 
so you can have something like:
 
enum
{
switch1  1,
switch2  2,
switch3  3
}
 
where switch1 will have value 1, switch2 
will have value 2 etc.
 
But as fas as i can see, you want the other 
way round. Thats not possible.
 
Thanks and Regards,
Sailesh
 
 

  
  -----Original Message-----
From: Ambrose 
  [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 
  11:44 AM
To: BDOTNET
Subject: 
  Enumeration


  
    
      
      New Message on BDOTNET
    
      

  Enumeration


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: Ambrose 
            
              

                Hi 
                All,
                I 
                have the below code.
                
                
switch(UserType)
                
{
                
case 1:
                
return "Type 
                1";
                
case 2:
                
return "Type 
                2";
                
.....
                
Is it 
                possible to conver this into enumeration where I have to get the 
                Names by Passing the ids. the Names will have spaces.
                
Thanks
                
Anandraj.A.
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to