mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 03:11:39 +01:00 
			
		
		
		
	- check for editable state in SetFieldData
This commit is contained in:
		
							parent
							
								
									37a0e8db97
								
							
						
					
					
						commit
						734aa62d36
					
				| @ -421,6 +421,11 @@ var | |||||||
|   FieldUpdBuf : PFieldUpdateBuffer; |   FieldUpdBuf : PFieldUpdateBuffer; | ||||||
| 
 | 
 | ||||||
| begin | begin | ||||||
|  |   if not (state in [dsEdit, dsInsert]) then | ||||||
|  |     begin | ||||||
|  |     DatabaseErrorFmt(SNotInEditState,[NAme],self); | ||||||
|  |     exit; | ||||||
|  |     end; | ||||||
|   If Field.Fieldno > 0 then // If = 0, then calculated field or something
 |   If Field.Fieldno > 0 then // If = 0, then calculated field or something
 | ||||||
|     begin |     begin | ||||||
|     CurrBuff := ActiveBuffer; |     CurrBuff := ActiveBuffer; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 joost
						joost