| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                 
                
  | 
                
					
                    
                         
    4D v20.6
 
Generate UUID 
                                
                                
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generate UUID -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| Function result | String | 
             
         | 
        New UUID as non-canonical text (32 characters) | |||||
The Generate UUID returns a new 32-character UUID identifier in non-canonical form.
An UUID is a 16-byte number (128 bits). It contains 32 hexadecimal characters. It can be expressed either in non-canonical form (series of 32 letters [A-F, a-f] and/or numbers [0-9], for example 550e8400e29b41d4a716446655440000) or in canonical form (groups of 8,4,4,4,12, for example 550e8400-e29b-41d4-a716-446655440000).
In 4D, UUID numbers can be stored in fields. For more information, please refer to the UUID format section of the Design Reference manual.
Generation of a UUID in a variable:
 C_TEXT(MyUUID)
 MyUUID:=Generate UUID
	Product:  4D
	Theme:  Tools
	Number:  
        1066
        
        
        
	
	Created:  4D v12
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
	4D Language Reference ( 4D v20.2)
	
	4D Language Reference ( 4D v20.3)
	
	4D Language Reference ( 4D v20.4)
	
	
	4D Language Reference ( 4D v20.5)
	4D Language Reference ( 4D v20.6)
	
	
	
Add a comment