PC Review


Reply
Thread Tools Rate Thread

conversion from clr type to vb.net type

 
 
Chuck
Guest
Posts: n/a
 
      4th Aug 2003
Is there a function of somesort that lets me convert from
Common language runtime type to the Vb.net type.

for example:

System.SByte (none)
System.Int16 Short
System.Int32 Integer
System.Int64 Long

I would like a function that inputs the clr and outputs
the vb.

 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      4th Aug 2003

>Is there a function of somesort that lets me convert from
>Common language runtime type to the Vb.net type.


Do you mean the type names? If so, use the VbTypeName function.

The values don't need any conversion, since these are just two
different names for the same type.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
 
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
Conversion from type 'DBNull' to type 'String' is not valid Cirene Microsoft ASP .NET 2 19th Jun 2008 06:18 AM
Conversion from type DBNull to type String is invalid Michel Vanderbeke Microsoft VB .NET 4 16th May 2007 12:11 AM
Conversion from type 'DBNull' to type 'String' is not valid Chris Microsoft ASP .NET 2 11th May 2006 09:20 AM
conversion from type 'DBNull' to type 'float' is not valid ibiza Microsoft ASP .NET 2 27th Jan 2006 09:57 PM
Conversion from type 'SqlInt32' to type 'Integer' is not valid Greg Burns Microsoft ADO .NET 2 31st Oct 2005 11:36 PM


Features
 

Advertising
 

Newsgroups
 


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