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

Posted on 2008-10-28
Medium Priority
Last Modified: 2010-05-18
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));
Question by:Camillia
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 14

Expert Comment

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

or this:
myMethod(Order.Number,"O", new Guid.Empty);
LVL 14

Accepted Solution

CtrlAltDl earned 1600 total points
ID: 22826331
Oops, last line should be:
myMethod(Order.Number,"O", Guid.Empty);

Author Comment

ID: 22826941
let me try.
LVL 12

Assisted Solution

andrewjb earned 400 total points
ID: 22829838



Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question