![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#10
|
|||
|
|||
|
Realice los cambios en los campos de la tabla Mesas y cambie el codigo que quedo de la siguiente manera:
Código:
var
CompName:String;
comp : TComponent;
ctrl : TControl;
begin
QMesas.First;
while not QMesas.Eof do
begin
CompName := QMesasCODIGO.Value;
comp := Self.FindComponent(CompName);
if Assigned(comp) then
begin
SelectOnRunTime1.SelectControl := TControl(comp);
//SelectOnRunTime1.Selected := True;
ctrl := SelectOnRunTime1.SelectControl;
end;
with QMesas do
begin
Close;
SQL.Clear;
SQL.Add('UPDATE MESAS SET ANCHO = :ANC, PERSONAS = :PER, ALTO = :ALT, ARRIBA = :ARR, IZQUIERDA = :IZQ ');
SQL.Add('WHERE CODIGO = :COD');
ParamByName('ANC').Value := ctrl.Width;
ParamByName('ALT').Value := ctrl.Height;
ParamByName('PER').Value := ctrl.Tag;
ParamByName('IZQ').Value := ctrl.Left;
ParamByName('ARR').Value := ctrl.Top;
ParamByName('COD').Value := Form1.QMesasCODIGO.Value;
ExecSQL;
Open;
Next;
end;
end;
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Error DataSet is read Only | mightydragonlor | Lazarus, FreePascal, Kylix, etc. | 10 | 08-11-2008 21:43:16 |
| Error 'Cannot modify a read-only dataset' | karaoke | Varios | 8 | 10-12-2007 06:38:31 |
| Al intentar modificar un campo me dice "Cannot modify a read-only dataset" | raulahol | SQL | 1 | 22-01-2007 05:16:53 |
| error cannot modify a read-only dataset | Renees | Varios | 2 | 30-09-2006 00:39:27 |
| Query1 cannot modify a read-only dataset | Nbull | SQL | 14 | 14-12-2004 10:29:35 |
|