Re: how can I get the string representation of an enumeration??



The following code will show System.Data.SqlDbType.Int:

SqlDbType t = SqlDbType.Int;
string s = t.GetType().ToString() + "." + t.ToString();
MessageBox.Show(s);

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/


"Green" <someone@xxxxxxxxx> wrote in message
news:eVNr%2328VFHA.2572@xxxxxxxxxxxxxxxxxxxxxxx
> Hi, All
> I have an Enumeration SqlDbType.Int, I want to convert to
> "SqlDbType.Int". How to do this, thanks very much!
>
>
>
>


.



Relevant Pages

  • Re: selected rows in a datagrid VBNET
    ... G6 Consulting ... Toronto, Canada ... > how i can get the selected row in a datagrid, in ancient times we can use ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Please Help...
    ... > G6 Consulting ... > Toronto, Canada ... >> Programming using VFP. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to build moveable toolbar?
    ... G6 Consulting ... Toronto, Canada ... How can I build movable toolbars as that in ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: extract tar.gz
    ... G6 Consulting ... Toronto, Canada ... > How can I extract tar.gz files? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Ive been trying to resist it....
    ... Australia placed first in the survey, ahead of China, with India ... I knew Canada was holding up well - it's your tight-fisted banks and ... he and and Clinton are speaking at a hotel in Toronto ... putting up barricades as they expect several thousands of protestors ...
    (soc.culture.scottish)