FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
Microsoft Atlas Client-side Javascript Enumerations in the March CTP - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on .NET, Sql, ASP.NET, and other crazy shenanigans

News

Personal Blog

Work Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Microsoft Atlas Client-side Javascript Enumerations in the March CTP

It looks like enumerations have changed in the March CTP of Atlas.  To create an enumeration, you now call the Type.createEnum() method like below.  In this example, the EnumGBI is created.

    Type.createEnum("EnumGBI", "Good", 0, "Bad", 1, "Indifferent", 2);
    for (var strItems in EnumGBI.getValues())
    {
        strOut += strItems + strReturn;
    }

Posted: Mar 31 2006, 02:18 PM by Wallym | with no comments
Filed under: ,

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)