When I try to execute sql query from delphi7 it throws the
following exception ORA-01704: string literal too long. I
know the reason why its throwing this exception. My problem
is.... I have catched this exception throw Try.... Except
block.....In except block i am performing rollback..... due
to above error its also throwing exception in rollback
transaction...........due to rollback
exception...........it had created some problem in
connection...........every time when i try to open or close
a connection it throws an exception " Operation is not
allowed when the object is open"
Answer / tazeem ansari
Whenever open an connection database fisrt close it
fist line of code is close connection.
or your database table is open close it from database .
| Is This Answer Correct ? | 1 Yes | 0 No |
How to Set a transparent background color for TImageList?
what are the Versions of DB2 supported by BDE 5.10 ?
How to set the default form font in Delphi?
How to Print a TStringGrid / TDBGrid?
How to Hide the application from the Windows Taskbar?
How to change a specific IDAPI configuration setting?
How to detect if a non-menu key has been pressed?
What are the Benefits of the ConstraintBroker?
How to Display 4 digit years in Delphi applications?
I'm using Delphi 4/5 and have am trying to fill a RichEdit control with both European characters and Thai characters - while I can change character colours the font stays with what was selected for the control:- reLangB.SelAttributes.Color :=dCol; reLangB.SelAttributes.Name :=FontName[dLang]; reLangB.SelAttributes.Charset :=FontChar[dLang]; reLangB.SelAttributes.Style :=[]; reLangB.Lines.Add(dText); The FontName and FontChar arrays contain the font info, and using a similar method for Captions and EditBoexes works! Anybody any ideas? Thanx in advance!
How does Delphi's exception handling work?
How to Change the main form of an application at runtime ?