Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

How do I create a GUID that's all zero?

I have a method that takes a GUID but i just want to pass it a generic...all zero GUID.

I tried a lot of things and none worked:

myMethod(DeleteOrderRows_GP(Order.Number,"O", new Guid((byte) 0));

myMethod(Order.Number,"O", new Guid[0]);

myMethod(Order.Number,"O", new Guid(0));
Avatar of CtrlAltDl
CtrlAltDl
Flag of United States of America image

Try this:
myMethod(Order.Number,"O", new Guid '0000000-0000-0000-0000-000000000000');

or this:
myMethod(Order.Number,"O", new Guid.Empty);
ASKER CERTIFIED SOLUTION
Avatar of CtrlAltDl
CtrlAltDl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Camillia

ASKER

let me try.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial