Raised This Month: $ Target: $400
 0% 

Constants and Enum


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
marquezs
Member
Join Date: Jun 2010
Old 05-07-2011 , 17:39   Constants and Enum
Reply With Quote #1

Is it possible to associate a constant to a enum? How do I do it?

For example
PHP Code:
enum _:other {
        
AAA,
        
BBB,
        
ZZZ
}

new const 
some[][] = { 
        
"XXX",
        
"YYY",
        
"ZZZ"
}

function()
{
    
some[AAA// This would call the value inside the constant array

Thanks
marquezs is offline
 



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

Forum Jump


All times are GMT -4. The time now is 04:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode