<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
El 30/06/11 05:13, Luca Olivetti escribió:
<blockquote cite="mid:4E0C3021.2040302@wetron.es" type="cite">Al
29/06/2011 17:53, En/na Julio César Gázquez ha escrit:
<br>
<br>
<blockquote type="cite">However, I found that in the
OnEditButtonClick event I can't put the
<br>
dataset in dsEdit state, the Edit procedure has no visible
effect and
<br>
the field assignment triggers an exception.
<br>
<br>
</blockquote>
Works here, lazarus 0.9.30, fpc 2.4.2, zeos 6.6.4 (with some local
modifications to make it compile under current lazarus).
<br>
(In my program I used a TRxDBGrid, and I'm quite pissed that now
the headings are awful, but I also tested with a plain TDbGrid).
<br>
</blockquote>
I've built again fcl-db with debugging symbols and find the problems
lie on datasource code triggered when the dataset propagates the
event in the append code. If I detach the datasource before calling
Edit it works as intended.<br>
<br>
BTW, I'm using fpc 2.4.4 from a recent build of 0.9.30+fixes, could
it be a regression?<br>
<br>
<div class="moz-signature">-- <br>
<font face="Arial Narrow" color="#5f5f5f" size="3"><i>Ing. Julio
César Gázquez / MEBA - Mutual de Empleados del Banco</i></font>
<font face="Arial Narrow" color="#5f5f5f" size="2"><i><br>
Mitre 923 1º Piso<br>
0341- 4110533 / 4265010 / 0800 9990452<br>
S2000COS ROSARIO</i></font><font size="3"><i><br>
</i></font><br>
<font color="#005000" size="2"><b>16 resmas = 1 árbol</b><br>
Razón suficiente para pensar si es necesario imprimir este
correo</font><br>
</div>
</body>
</html>