Solved

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

Posted on 2008-10-28
4
1,223 Views
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));
0
Comment
Question by:Camillia
  • 2
4 Comments
 
LVL 14

Expert Comment

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

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

Accepted Solution

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

Author Comment

by:Camillia
ID: 22826941
let me try.
0
 
LVL 12

Assisted Solution

by:andrewjb
andrewjb earned 100 total points
ID: 22829838
Guid.Empty

:-)

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 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