4D v17.4Is nil pointer | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
			
                    
                         
    4D v17.4
 
Is nil pointer 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Is nil pointer ( aPointer ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| aPointer | Pointer | 
             
         | 
        Pointer to be tested | |||||
| Function result | Boolean | 
             
         | 
        TRUE = Nil pointer (->[]) FALSE = Valid pointer to an existing object | |||||
The Is nil pointer command returns True if the pointer you pass in aPointer is Nil (->[]). It returns False in all other cases (pointer to field, table or variable).
If you want to find out the name of the variable or the number of the field that is being pointed to, you can use the RESOLVE POINTER command.
 C_POINTER($ptr)
 ...
 If(Is nil pointer($ptr))
 End if
  // is equivalent to
 If($ptr=Null)
 End if
	Product:  4D
	Theme:  Language
	Number:  
        315
        
        
        
	
	Created:  < 4D v6
	Renamed: 4D v16 R4
	
	
	
	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