Recent content by mazhigang

  1. M

    TOracleDataSet's calculate Filed problem

    I want to show the record index in my DbGrid,so I create a calculated field 'RecNo', in the OnCalcFields event is the code: with DataSet do FieldByName('RecNo').AsInteger := RecNo; when the code execute, I get a lot of duplicate row in the grid. Have any other way to show the record index...
  2. M

    TOracleDataSet's DateTime field problem

    My test table create dcript: CREATE TABLE Test(col1 integer, col2 date not null); I use col2 to store only time, and my code just like below: table1.Insert; table1.FieldByName('Col1').AsInteger := 0; table1.FieldByName('Col2').AsDateTime := EncodeTime(0,0,0,0)...
  3. M

    UseMessageTable

    See. Thank you very much.
  4. M

    UseMessageTable

    Thank you very much. I have received a message from the TDataSet. Now I want to know if the NOT NULL CONSTRAINT message can be translated through the message table. If it can be, how should I do. Below is part of the TOracleSession's help topic: The TOracleDataSet component can translate error...
  5. M

    UseMessageTable

    My table create script just like below: CREATE TABLE REALWAY.Province ( ProvID CHAR(2) NOT NULL, ProvName VARCHAR2(20) NULL ); ALTER TABLE REALWAY.Province ADD ( CONSTRAINT XPKProvince PRIMARY KEY (ProvID) ) ; I have created a message table and...
Back
Top