Guest_imported
New member
- Jan 1, 1970
- 0
Let's suppose that table is empty.
How do I manipulate this error:
ibquery1.close;
ibquery1.sql.clear;
ibquery1.sql.add('select * from TABLEMASTERX where master1='teste';');
ibquery1.open;
I want show a message telling that there are an error X and exit from procedure.
I want to do this (several bugs):
on error goto quit1;
ibquery1.close;
ibquery1.sql.clear;
ibquery1.sql.add('select * from TABLEMASTERX where master1='teste';');
ibquery1.open;
on error goto 0;
goto continue1;
quit1:
messagedlg ("Error nº: X",mtinformation,[mbok],0);
halt;
continue1:
...
How do I manipulate this error:
ibquery1.close;
ibquery1.sql.clear;
ibquery1.sql.add('select * from TABLEMASTERX where master1='teste';');
ibquery1.open;
I want show a message telling that there are an error X and exit from procedure.
I want to do this (several bugs):
on error goto quit1;
ibquery1.close;
ibquery1.sql.clear;
ibquery1.sql.add('select * from TABLEMASTERX where master1='teste';');
ibquery1.open;
on error goto 0;
goto continue1;
quit1:
messagedlg ("Error nº: X",mtinformation,[mbok],0);
halt;
continue1:
...