.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 21st, 2000, 09:16 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
conversion functions

<i><b>Originally posted by : Quintin (quintin@cambridgec.com)</b></i><br />This is what I'm trying to do. I have a C# component that has a member function. Said function has a switch statement that uses an enumeration for comparison values. When I try to build I get this error:<br /><br />Cannot implicitly convert type 'myProject.myComponent.eMENU' to 'int'<br /><br />Here's the declaration I used for my enum:<br /><br />public enum eMENU: int<br />{<br /> TITLE = 1,<br /> HEADING,<br /> SUBHEADING,<br /> MENUITEM<br />}<br /><br />Here's the opening of my switch statement:<br /><br />switch(Int32.Parse(tempMenuItem["menuItemType"].ToString()))<br />{ case eMENU.TITLE:<br /><br />Also... anyone know what the C# equivilent to the old Chr() function is? I'm generating html to output, and it would be nice to have some line breaks to make the source readable...<br /><br />If you're fairly new to this too, maybe this will help. I just had a number in a database that I was trying to do math with, took me a while to find the proper function to treat it like the number it was:<br /><br />Int32.Parse(menuDeclaration["menuTotalWidth"].ToString())<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > conversion functions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway