4D v17.4Read only state | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
			
                    
                         
    4D v17.4
 
Read only state 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Read only state {( aTable )} -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| aTable | Table | 
             
         | 
        Table for which to test read-only state, or Default table, if omitted | |||||
| Function result | Boolean | 
             
         | 
        Access to table is read-only (TRUE), or Access to table is read-write (FALSE) | |||||
This function tests whether or not the state of aTable is read-only for the process in which it is called. Read only state returns TRUE if the state of aTable is read-only. Read only state returns FALSE if the state of aTable is read/ write.
The following example tests the state of an [Invoice] table. If the state of the [Invoice] table is read-only, it is set to read/write, and then the current record is reloaded.
 If(Read only state([Invoice]))
    READ WRITE([Invoice])
    LOAD RECORD([Invoice])
 End ifNote: The invoice record is reloaded to allow the user to modify it. A record that was previously loaded in a read-only state will remain locked until it is reloaded in a read/write state.
	Product:  4D
	Theme:  Record Locking
	Number:  
        362
        
        
        
	
	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