CFLib.org – Common Function Library Project

CreateGUID()

Last updated July 17, 2001
Download UDF

author

Nathan Dintenfass                                 Nathan Dintenfass

Version: 1 | Requires: ColdFusion 5 | Library: StrLib

 
Rated 17 time(s). Average Rating: 4.8

Description:
Modifies the CF CreateUUID() function to return a UUID in the form that Microsoft uses.

Return Values:
Returns a string.

Example:

<CFOUTPUT>
CreateGUID returns #CreateGUID()#<BR>
</CFOUTPUT>

Parameters:

No arguments.

Full UDF Source:

<cfscript>
/**
* Returns a UUID in the Microsoft form.
*
* @return Returns a string.
* @author Nathan Dintenfass (nathan@changemedia.com)
* @version 1, July 17, 2001
*/

function CreateGUID() {
    return insert("-", CreateUUID(), 23);
}
</cfscript>

Search CFLib.org


Latest Additions

Shawn Porter Shawn Porter added
DeMoronize
3 hour(s) ago

Chris Carey Chris Carey added
readPropertiesFi...
1 day(s) ago

Randy Johnson Randy Johnson added
lastDayofWeek
3 day(s) ago

Frank Marion Frank Marion added
sitemapPing
7 day(s) ago

Top Rated

James Sleeman                                     QuickSort
Rated 5.0, 3 time(s)

Barney Boisvert indentXml
Rated 5.0, 3 time(s)

Nathan Dintenfass                                 queryColumnsToSt...
Rated 5.0, 3 time(s)

Kevin Pepperman generateSsccAsn
Rated 5.0, 3 time(s)

Created by Raymond Camden / Design by Justin Johnson