4D v17.4Length | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                 
                
  | 
                
			
                    
                         
    4D v17.4
 
Length 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Length ( string ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| string | String | 
             
         | 
        String for which to return length | |||||
| Function result | Longint | 
             
         | 
        Length of string | |||||
Length is used to find the length of aString. Length returns the number of characters that are in aString.
Note: In Unicode mode, when you want to check whether a string contains any characters, including ignorable characters, you must use the test If(Length(vtAnyText)=0) rather than If(vtAnyText=""). If the string contains for example Char(1), which is an ignorable character, Length(vtAnyText) does return 1 but vtAnyText="" returns True.
This example illustrates the use of Length. The results, described in the comments, are assigned to the variable vlResult.
 vlResult:=Length("Topaz") ` vlResult gets 5
 vlResult:=Length("Citizen") ` vlResult gets 7
	Product:  4D
	Theme:  String
	Number:  
        16
        
        
        
	
	Created:  < 4D v6
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v17)
	
	
	
	
	
	4D Language Reference ( 4D v17.1)
	
	
	4D Language Reference ( 4D v17.2)
	
	
	4D Language Reference ( 4D v17.3)
	
	4D Language Reference ( 4D v17.4)
	
	
Add a comment