Converting from string to Enumerated type

  • Thread starter Thread starter postings
  • Start date Start date
P

postings

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
 
How do I convert from string to Enumerated type I defined?

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top