PC Review


Reply
Thread Tools Rate Thread

Converting from string to Enumerated type

 
 
postings@alexshirley.com
Guest
Posts: n/a
 
      2nd Jan 2006
Hi

How do I convert from string to Enumerated type I defined?

i.e.
Dim pagemode As myenumtype = CType(mystringvalue,???? ).

Can't seem to work this out at all!

Cheers

Alex

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      2nd Jan 2006
<(E-Mail Removed)> schrieb:
> How do I convert from string to Enumerated type I defined?
>
> i.e.
> Dim pagemode As myenumtype = CType(mystringvalue,???? ).


'... = [Enum].Parse(...)'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
 
Reply With Quote
 
 
 
 
postings@alexshirley.com
Guest
Posts: n/a
 
      2nd Jan 2006
Thanks for your help Herfried

Alex

 
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
calculating number of elements in an enumerated type Claire Microsoft C# .NET 5 7th Sep 2004 01:01 PM
Return value of Property Get when using enumerated type jason Microsoft Excel Programming 3 23rd Aug 2004 01:13 PM
Enumerated Type Vb.Net - Newbie Question AndyDunning Microsoft Dot NET 1 6th May 2004 12:40 PM
Enumerated type names by using just a string, Brian Microsoft C# .NET 4 29th Mar 2004 05:29 PM
Problem returning an enumerated type from a property Rob Richardson Microsoft VB .NET 1 13th Jan 2004 04:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:40 AM.