C
Charles Hunt
Hi,
When running this code in VB2003
Sub guidtest()
Dim gstring As String
Dim gid As Guid
gstring = Guid.NewGuid().ToString
gid = New Guid(gstring)
End Sub
variable GID gets the correct value derived from gstring - however when i do
this in VB2005 it doesn't work - i just get an empty GUID - this seems like
a fairly serious problem so i am assuming i have made some incorrect basic
assumptions.
my installation of VS2005 went pretty smoothly from memory and it pretty
much has default options.
Can anyone replicate this problem / error?
is it a bug in VS/VB or .NET?
I look forward to hearing from anyone with any ideas here as I have spent
about 10 hours trying to see what I have done wrong.
best
Charles
When running this code in VB2003
Sub guidtest()
Dim gstring As String
Dim gid As Guid
gstring = Guid.NewGuid().ToString
gid = New Guid(gstring)
End Sub
variable GID gets the correct value derived from gstring - however when i do
this in VB2005 it doesn't work - i just get an empty GUID - this seems like
a fairly serious problem so i am assuming i have made some incorrect basic
assumptions.
my installation of VS2005 went pretty smoothly from memory and it pretty
much has default options.
Can anyone replicate this problem / error?
is it a bug in VS/VB or .NET?
I look forward to hearing from anyone with any ideas here as I have spent
about 10 hours trying to see what I have done wrong.
best
Charles