Name

CreateUUID

Synopsis

                  
                  
                  CreateUUID( )

Creates a universally unique identifier (UUID). UUIDs are 35-character representations of 128-bit strings, where each character is a hexadecimal value in the range 0-9 and A-F. UUIDs are used when you need to create a unique identifier (such as a user ID or primary key value). UUIDs are guaranteed to be unique and are assigned randomly on most operating systems. Note that the format that ColdFusion uses for UUIDs is not the same format used by Microsoft and DCE. ColdFusion UUIDs follow the format xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx whereas Microsoft/DCE UUIDs are formatted as xxxxxxxx-xxxx-xxxx-xxxxxx-xxxxxxxxxx. If you need a UUID that follows the Microsoft/DCE format, see the CreateGUID( ) UDF available at http://www.cflib.org. Example:

Here is your UUID:  <cfoutput>#CreateUUID( )#</cfoutput>.

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.