CFLib.org – Common Function Library Project

CreateGUID()

Last updated July 17, 2001

author

Nathan Dintenfass

Version: 1 | Requires: CF5 | Library: StrLib

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:

/**
 * 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);
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson