porfavor ayudenme con esto please..
Publicado por Peter veneno (1 intervención) el 18/12/2004 04:16:41
HOLA AMIGOS COMO ESTAN ESPERO NO MOLESTAR PERO TENGO UN ERROR AL INGRESAR MAS DE LOS PARAMETROS`PERMITIDOS.,.
OSEA INGRESO 66666666666666 Y EL PROGRAMA SE CAE QUIERO SACAR EL ERROR CON UN TRY PERO NO PUEDO ME SIGUE GENERANDI EL ERROR COMO DEBERIA COLOCAR EL TRY EN ESTE CODIGO
procedure TForm35.BitBtn1Click(Sender: TObject);
begin
if edit1.text=\\\'\\\' then
begin
Showmessage(\\\'Debe ingresar el número de serie del cheque\\\');
Exit;
end;
query1.Close;
query1.Params[0].Value := StrToInt(edit1.text);
query1.open;
if query1.eof then
begin
Showmessage(\\\'No hay chques ingresados con ese número de serie\\\');
exit;
end
else
begin
Showmessage(\\\'exedio el número de caracteres\\\');
edit2.Text :=query1.Fields[3].asString;
edit3.Text :=query1.Fields[1].asstring;
edit4.Text :=query1.Fields[2].AsString;
edit5.Text :=query1.Fields[0].AsString;
edit6.Text :=query1.Fields[4].AsString;
edit2.visible := true;
edit3.visible := true;
edit4.visible := true;
edit5.visible := true;
edit6.visible := true;
Label2.visible := true;
Label3.visible := true;
Label4.visible := true;
Label5.visible := true;
Label6.visible := true;
end;
end;
OSEA INGRESO 66666666666666 Y EL PROGRAMA SE CAE QUIERO SACAR EL ERROR CON UN TRY PERO NO PUEDO ME SIGUE GENERANDI EL ERROR COMO DEBERIA COLOCAR EL TRY EN ESTE CODIGO
procedure TForm35.BitBtn1Click(Sender: TObject);
begin
if edit1.text=\\\'\\\' then
begin
Showmessage(\\\'Debe ingresar el número de serie del cheque\\\');
Exit;
end;
query1.Close;
query1.Params[0].Value := StrToInt(edit1.text);
query1.open;
if query1.eof then
begin
Showmessage(\\\'No hay chques ingresados con ese número de serie\\\');
exit;
end
else
begin
Showmessage(\\\'exedio el número de caracteres\\\');
edit2.Text :=query1.Fields[3].asString;
edit3.Text :=query1.Fields[1].asstring;
edit4.Text :=query1.Fields[2].AsString;
edit5.Text :=query1.Fields[0].AsString;
edit6.Text :=query1.Fields[4].AsString;
edit2.visible := true;
edit3.visible := true;
edit4.visible := true;
edit5.visible := true;
edit6.visible := true;
Label2.visible := true;
Label3.visible := true;
Label4.visible := true;
Label5.visible := true;
Label6.visible := true;
end;
end;
Valora esta pregunta


0