Try:
uidTest = Guid.NewGuid()
Regards
Paul
>.
>
each of these:
System.Guid x = new System.Guid();
System.Guid x;
will create an instance of a Guid type (the first will be initialized by the
default ctor, the second will be uninitialized) - and as you reported, the
default initialized value is set to all zeros. To get a value that is
globally unique in time and space, use the static NewGuid() method.
Something like this:
System.Guid x = System.Guid.NewGuid();
or
System.Guid x;
....
x = System.Guid.NewGuid();
regards
roy fine
"Jim Heavey" <JimH...@nospam.com> wrote in message
news:Xns9468C1483867CJ...@207.46.248.16...
Odd that;s really how people creates new GUID, are you sure you are checking
the right variable etc?
Hadi
returns all zeros
Guid GUID = new Guid();
values.Add("userid", GUID.ToString());
userid=00000000-0000-0000-0000-000000000000
>.
>
<anon...@discussions.microsoft.com> wrote in message
news:52de01c3d94f$039d7380$7d02...@phx.gbl...