469,626 Members | 1,025 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Specify System.UInt64 values

Hello

Whenever I try to set a value of a System.UInt64 I get:

Dim var1 As System.UInt64 = &H18B377544DD23334

Error BC30311: Value of type 'Long' cannot be converted to 'System.UInt64'.

What is the correct way?

Thanks in advance.
-- John
Nov 21 '05 #1
1 1168
"John Smith" <jo********@x-formation.com> schrieb:
Whenever I try to set a value of a System.UInt64 I get:

Dim var1 As System.UInt64 = &H18B377544DD23334

Error BC30311: Value of type 'Long' cannot be converted to
'System.UInt64'.

What is the correct way?


VB.NET doesn't provide support for unsigned integer data types in the
language. You may want to use 'UInt64.Parse' to get an 'UInt64' from a
string.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by ThunderMusic | last post: by
3 posts views Thread by Mike Miller | last post: by
8 posts views Thread by Kevin | last post: by
5 posts views Thread by stuie_norris | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.