Reinier Olislagers 11 năm trước cách đây
mục cha
commit
c4796e776c
3 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 1 0
      newtable.pas
  2. 1 0
      systables.pas
  3. 2 2
      tablemanage.pas

+ 1 - 0
newtable.pas

@@ -43,6 +43,7 @@ type
   private
   private
     FDBIndex: Integer;
     FDBIndex: Integer;
     function Validate: Boolean;
     function Validate: Boolean;
+    // Get field count using stringgrid count
     function GetFieldsCount: Integer;
     function GetFieldsCount: Integer;
     function GetClosestType(ATypePart: string): string;
     function GetClosestType(ATypePart: string): string;
     { private declarations }
     { private declarations }

+ 1 - 0
systables.pas

@@ -108,6 +108,7 @@ type
     // Gets all index info for a certain database
     // Gets all index info for a certain database
     function GetAllIndices(dbIndex: Integer; List, TablesList: TStringList): Boolean;
     function GetAllIndices(dbIndex: Integer; List, TablesList: TStringList): Boolean;
 
 
+    // Gets index names associated with a primary key
     function GetPrimaryKeyIndexName(dbIndex: Integer; ATableName: string; var ConstraintName: string): string;
     function GetPrimaryKeyIndexName(dbIndex: Integer; ATableName: string; var ConstraintName: string): string;
 
 
     function GetIndexInfo(dbIndex: Integer; ATableName, AIndexName: string;
     function GetIndexInfo(dbIndex: Integer; ATableName, AIndexName: string;

+ 2 - 2
tablemanage.pas

@@ -268,10 +268,10 @@ begin
   Delete(Fields, Length(Fields), 1);
   Delete(Fields, Length(Fields), 1);
 
 
   if Trim(Fields) = '' then
   if Trim(Fields) = '' then
-    MessageDlg('Error', 'Your should select one field at least', mtError, [mbOk], 0)
+    MessageDlg('Error', 'You should select at least one field', mtError, [mbOk], 0)
   else
   else
   if Trim(edIndexName.Text) = '' then
   if Trim(edIndexName.Text) = '' then
-    MessageDlg('Error', 'Your should enter new index name', mtError, [mbOk], 0)
+    MessageDlg('Error', 'You should enter the new index name', mtError, [mbOk], 0)
   else
   else
   begin
   begin
     QWindow:= fmMain.ShowQueryWindow(FDBIndex, 'Create new index');
     QWindow:= fmMain.ShowQueryWindow(FDBIndex, 'Create new index');