Просмотр исходного кода

Uniform spelling of DOUBLE PRECISION

Reinier Olislagers 11 лет назад
Родитель
Сommit
9756b02ad1
8 измененных файлов с 292 добавлено и 269 удалено
  1. 35 21
      copytable.lfm
  2. 74 64
      copytable.lrs
  3. 0 1
      copytable.pas
  4. 5 4
      main.pas
  5. 1 1
      systables.pas
  6. 11 12
      tablemanage.lfm
  7. 165 165
      tablemanage.lrs
  8. 1 1
      tablemanage.pas

+ 35 - 21
copytable.lfm

@@ -7,28 +7,28 @@ object fmCopyTable: TfmCopyTable
   ClientHeight = 509
   ClientWidth = 610
   Position = poScreenCenter
-  LCLVersion = '1.0.4.0'
+  LCLVersion = '1.2.2.0'
   object Label1: TLabel
     Left = 9
-    Height = 18
+    Height = 13
     Top = 19
-    Width = 114
+    Width = 82
     Caption = 'Source Database'
     ParentColor = False
   end
   object Label2: TLabel
     Left = 9
-    Height = 18
+    Height = 13
     Top = 56
-    Width = 86
+    Width = 62
     Caption = 'Soruce Table'
     ParentColor = False
   end
   object laSourceDatabase: TLabel
     Left = 183
-    Height = 18
+    Height = 13
     Top = 16
-    Width = 121
+    Width = 96
     Caption = 'Source Database'
     Font.Style = [fsBold]
     ParentColor = False
@@ -36,54 +36,54 @@ object fmCopyTable: TfmCopyTable
   end
   object Label3: TLabel
     Left = 9
-    Height = 18
+    Height = 13
     Top = 91
-    Width = 146
+    Width = 103
     Caption = 'Destination Database'
     ParentColor = False
   end
   object Label4: TLabel
     Left = 9
-    Height = 18
+    Height = 13
     Top = 152
-    Width = 118
+    Width = 83
     Caption = 'Destination Table'
     ParentColor = False
   end
   object cbSourceTable: TComboBox
     Left = 183
-    Height = 31
+    Height = 21
     Top = 46
     Width = 177
-    ItemHeight = 0
+    ItemHeight = 13
     OnChange = cbSourceTableChange
     Style = csDropDownList
     TabOrder = 0
   end
   object cbDestDatabase: TComboBox
     Left = 183
-    Height = 31
+    Height = 21
     Top = 84
     Width = 217
-    ItemHeight = 0
+    ItemHeight = 13
     OnChange = cbDestDatabaseChange
     Style = csDropDownList
     TabOrder = 1
   end
   object cbDestTable: TComboBox
     Left = 183
-    Height = 31
+    Height = 21
     Top = 151
     Width = 177
-    ItemHeight = 0
+    ItemHeight = 13
     Style = csDropDownList
     TabOrder = 2
   end
   object laDatabase: TLabel
     Left = 184
-    Height = 15
+    Height = 13
     Top = 120
-    Width = 108
+    Width = 103
     Caption = 'Destination Database'
     Font.Height = -11
     ParentColor = False
@@ -257,9 +257,9 @@ object fmCopyTable: TfmCopyTable
   end
   object Label5: TLabel
     Left = 9
-    Height = 18
+    Height = 13
     Top = 224
-    Width = 239
+    Width = 170
     Caption = 'select statement from Source Table'
     ParentColor = False
   end
@@ -783,6 +783,7 @@ object fmCopyTable: TfmCopyTable
         ShiftMask = [ssShift, ssAlt, ssCtrl]
         Command = emcMouseLink
       end>
+    MouseTextActions = <>
     MouseSelActions = <    
       item
         ClickDir = cdDown
@@ -791,23 +792,31 @@ object fmCopyTable: TfmCopyTable
     VisibleSpecialChars = [vscSpace, vscTabAtLast]
     RightEdge = 65
     ScrollBars = ssAutoBoth
+    SelectedColor.FrameEdges = sfeAround
     SelectedColor.BackPriority = 50
     SelectedColor.ForePriority = 50
     SelectedColor.FramePriority = 50
     SelectedColor.BoldPriority = 50
     SelectedColor.ItalicPriority = 50
     SelectedColor.UnderlinePriority = 50
+    SelectedColor.StrikeOutPriority = 50
+    IncrementColor.FrameEdges = sfeAround
+    HighlightAllColor.FrameEdges = sfeAround
     BracketHighlightStyle = sbhsBoth
     BracketMatchColor.Background = clNone
     BracketMatchColor.Foreground = clNone
+    BracketMatchColor.FrameEdges = sfeAround
     BracketMatchColor.Style = [fsBold]
     FoldedCodeColor.Background = clNone
     FoldedCodeColor.Foreground = clGray
     FoldedCodeColor.FrameColor = clGray
+    FoldedCodeColor.FrameEdges = sfeAround
     MouseLinkColor.Background = clNone
     MouseLinkColor.Foreground = clBlue
+    MouseLinkColor.FrameEdges = sfeAround
     LineHighlightColor.Background = clNone
     LineHighlightColor.Foreground = clNone
+    LineHighlightColor.FrameEdges = sfeAround
     inline TSynGutterPartList
       object TSynGutterMarks
         Width = 24
@@ -818,6 +827,7 @@ object fmCopyTable: TfmCopyTable
         MouseActions = <>
         MarkupInfo.Background = clBtnFace
         MarkupInfo.Foreground = clNone
+        MarkupInfo.FrameEdges = sfeAround
         DigitCount = 2
         ShowOnlyLineNumbersMultiplesOf = 1
         ZeroStart = False
@@ -832,6 +842,9 @@ object fmCopyTable: TfmCopyTable
       object TSynGutterSeparator
         Width = 2
         MouseActions = <>
+        MarkupInfo.Background = clWhite
+        MarkupInfo.Foreground = clGray
+        MarkupInfo.FrameEdges = sfeAround
       end
       object TSynGutterCodeFolding
         MouseActions = <        
@@ -862,6 +875,7 @@ object fmCopyTable: TfmCopyTable
           end>
         MarkupInfo.Background = clNone
         MarkupInfo.Foreground = clGray
+        MarkupInfo.FrameEdges = sfeAround
         MouseActionsExpanded = <        
           item
             ClickCount = ccAny

+ 74 - 64
copytable.lrs

@@ -1,26 +1,28 @@
+{ This is an automatically generated lazarus resource file }
+
 LazarusResources.Add('TfmCopyTable','FORMDATA',[
   'TPF0'#12'TfmCopyTable'#11'fmCopyTable'#4'Left'#3'`'#1#6'Height'#3#253#1#3'To'
   +'p'#3#207#0#5'Width'#3'b'#2#7'Caption'#6#10'Copy Table'#12'ClientHeight'#3
   +#253#1#11'ClientWidth'#3'b'#2#8'Position'#7#14'poScreenCenter'#10'LCLVersion'
-  +#6#7'1.0.4.0'#0#6'TLabel'#6'Label1'#4'Left'#2#9#6'Height'#2#18#3'Top'#2#19#5
-  +'Width'#2'r'#7'Caption'#6#15'Source Database'#11'ParentColor'#8#0#0#6'TLabel'
-  +#6'Label2'#4'Left'#2#9#6'Height'#2#18#3'Top'#2'8'#5'Width'#2'V'#7'Caption'#6
+  +#6#7'1.2.2.0'#0#6'TLabel'#6'Label1'#4'Left'#2#9#6'Height'#2#13#3'Top'#2#19#5
+  +'Width'#2'R'#7'Caption'#6#15'Source Database'#11'ParentColor'#8#0#0#6'TLabel'
+  +#6'Label2'#4'Left'#2#9#6'Height'#2#13#3'Top'#2'8'#5'Width'#2'>'#7'Caption'#6
   +#12'Soruce Table'#11'ParentColor'#8#0#0#6'TLabel'#16'laSourceDatabase'#4'Lef'
-  +'t'#3#183#0#6'Height'#2#18#3'Top'#2#16#5'Width'#2'y'#7'Caption'#6#15'Source '
+  +'t'#3#183#0#6'Height'#2#13#3'Top'#2#16#5'Width'#2'`'#7'Caption'#6#15'Source '
   +'Database'#10'Font.Style'#11#6'fsBold'#0#11'ParentColor'#8#10'ParentFont'#8#0
-  +#0#6'TLabel'#6'Label3'#4'Left'#2#9#6'Height'#2#18#3'Top'#2'['#5'Width'#3#146
-  +#0#7'Caption'#6#20'Destination Database'#11'ParentColor'#8#0#0#6'TLabel'#6'L'
-  +'abel4'#4'Left'#2#9#6'Height'#2#18#3'Top'#3#152#0#5'Width'#2'v'#7'Caption'#6
-  +#17'Destination Table'#11'ParentColor'#8#0#0#9'TComboBox'#13'cbSourceTable'#4
-  +'Left'#3#183#0#6'Height'#2#31#3'Top'#2'.'#5'Width'#3#177#0#10'ItemHeight'#2#0
+  +#0#6'TLabel'#6'Label3'#4'Left'#2#9#6'Height'#2#13#3'Top'#2'['#5'Width'#2'g'#7
+  +'Caption'#6#20'Destination Database'#11'ParentColor'#8#0#0#6'TLabel'#6'Label'
+  +'4'#4'Left'#2#9#6'Height'#2#13#3'Top'#3#152#0#5'Width'#2'S'#7'Caption'#6#17
+  +'Destination Table'#11'ParentColor'#8#0#0#9'TComboBox'#13'cbSourceTable'#4'L'
+  +'eft'#3#183#0#6'Height'#2#21#3'Top'#2'.'#5'Width'#3#177#0#10'ItemHeight'#2#13
   +#8'OnChange'#7#19'cbSourceTableChange'#5'Style'#7#14'csDropDownList'#8'TabOr'
-  +'der'#2#0#0#0#9'TComboBox'#14'cbDestDatabase'#4'Left'#3#183#0#6'Height'#2#31
-  +#3'Top'#2'T'#5'Width'#3#217#0#10'ItemHeight'#2#0#8'OnChange'#7#20'cbDestData'
-  +'baseChange'#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#1#0#0#9'TComboBox'
-  +#11'cbDestTable'#4'Left'#3#183#0#6'Height'#2#31#3'Top'#3#151#0#5'Width'#3#177
-  +#0#10'ItemHeight'#2#0#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#2#0#0#6'TL'
-  +'abel'#10'laDatabase'#4'Left'#3#184#0#6'Height'#2#15#3'Top'#2'x'#5'Width'#2
-  +'l'#7'Caption'#6#20'Destination Database'#11'Font.Height'#2#245#11'ParentCol'
+  +'der'#2#0#0#0#9'TComboBox'#14'cbDestDatabase'#4'Left'#3#183#0#6'Height'#2#21
+  +#3'Top'#2'T'#5'Width'#3#217#0#10'ItemHeight'#2#13#8'OnChange'#7#20'cbDestDat'
+  +'abaseChange'#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#1#0#0#9'TComboBox'
+  +#11'cbDestTable'#4'Left'#3#183#0#6'Height'#2#21#3'Top'#3#151#0#5'Width'#3#177
+  +#0#10'ItemHeight'#2#13#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#2#0#0#6'T'
+  +'Label'#10'laDatabase'#4'Left'#3#184#0#6'Height'#2#13#3'Top'#2'x'#5'Width'#2
+  +'g'#7'Caption'#6#20'Destination Database'#11'Font.Height'#2#245#11'ParentCol'
   +'or'#8#10'ParentFont'#8#0#0#7'TBitBtn'#6'bbCopy'#4'Left'#2#12#6'Height'#2'1'
   +#3'Top'#3#184#1#5'Width'#2's'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#7'Captio'
   +'n'#6#4'Copy'#10'Glyph.Data'#10':'#16#0#0'6'#16#0#0'BM6'#16#0#0#0#0#0#0'6'#0
@@ -227,7 +229,7 @@ LazarusResources.Add('TfmCopyTable','FORMDATA',[
   +'h'#3#148#0#8'AutoSize'#8#7'Caption'#6'5Make sure it is already exist with t'
   +'he same structure'#10'Font.Color'#4'FFF'#0#11'Font.Height'#2#245#11'ParentC'
   +'olor'#8#10'ParentFont'#8#8'WordWrap'#9#0#0#6'TLabel'#6'Label5'#4'Left'#2#9#6
-  +'Height'#2#18#3'Top'#3#224#0#5'Width'#3#239#0#7'Caption'#6'"select statement'
+  +'Height'#2#13#3'Top'#3#224#0#5'Width'#3#170#0#7'Caption'#6'"select statement'
   +' from Source Table'#11'ParentColor'#8#0#0#244#8'TSynEdit'#8'syScript'#4'Lef'
   +'t'#2#8#6'Height'#3#161#0#3'Top'#3#8#1#5'Width'#3'Q'#2#7'Anchors'#11#5'akTop'
   +#6'akLeft'#7'akRight'#8'akBottom'#0#11'Font.Height'#2#243#9'Font.Name'#6#11
@@ -328,52 +330,60 @@ LazarusResources.Add('TfmCopyTable','FORMDATA',[
   +#7'Command'#7#13'emcSelectPara'#9'MoveCaret'#9#0#1#6'Button'#7#8'mbMiddle'#8
   +'ClickDir'#7#6'cdDown'#7'Command'#7#17'emcPasteSelection'#9'MoveCaret'#9#0#1
   +#5'Shift'#11#6'ssCtrl'#0#9'ShiftMask'#11#7'ssShift'#5'ssAlt'#6'ssCtrl'#0#7'C'
-  +'ommand'#7#12'emcMouseLink'#0#0#15'MouseSelActions'#14#1#8'ClickDir'#7#6'cdD'
-  +'own'#7'Command'#7#16'emcStartDragMove'#0#0#19'VisibleSpecialChars'#11#8'vsc'
-  +'Space'#12'vscTabAtLast'#0#9'RightEdge'#2'A'#10'ScrollBars'#7#10'ssAutoBoth'
-  +#26'SelectedColor.BackPriority'#2'2'#26'SelectedColor.ForePriority'#2'2'#27
-  +'SelectedColor.FramePriority'#2'2'#26'SelectedColor.BoldPriority'#2'2'#28'Se'
-  +'lectedColor.ItalicPriority'#2'2'#31'SelectedColor.UnderlinePriority'#2'2'#21
-  +'BracketHighlightStyle'#7#8'sbhsBoth'#28'BracketMatchColor.Background'#7#6'c'
-  +'lNone'#28'BracketMatchColor.Foreground'#7#6'clNone'#23'BracketMatchColor.St'
-  +'yle'#11#6'fsBold'#0#26'FoldedCodeColor.Background'#7#6'clNone'#26'FoldedCod'
-  +'eColor.Foreground'#7#6'clGray'#26'FoldedCodeColor.FrameColor'#7#6'clGray'#25
+  +'ommand'#7#12'emcMouseLink'#0#0#16'MouseTextActions'#14#0#15'MouseSelActions'
+  +#14#1#8'ClickDir'#7#6'cdDown'#7'Command'#7#16'emcStartDragMove'#0#0#19'Visib'
+  +'leSpecialChars'#11#8'vscSpace'#12'vscTabAtLast'#0#9'RightEdge'#2'A'#10'Scro'
+  +'llBars'#7#10'ssAutoBoth'#24'SelectedColor.FrameEdges'#7#9'sfeAround'#26'Sel'
+  +'ectedColor.BackPriority'#2'2'#26'SelectedColor.ForePriority'#2'2'#27'Select'
+  +'edColor.FramePriority'#2'2'#26'SelectedColor.BoldPriority'#2'2'#28'Selected'
+  +'Color.ItalicPriority'#2'2'#31'SelectedColor.UnderlinePriority'#2'2'#31'Sele'
+  +'ctedColor.StrikeOutPriority'#2'2'#25'IncrementColor.FrameEdges'#7#9'sfeArou'
+  +'nd'#28'HighlightAllColor.FrameEdges'#7#9'sfeAround'#21'BracketHighlightStyl'
+  +'e'#7#8'sbhsBoth'#28'BracketMatchColor.Background'#7#6'clNone'#28'BracketMat'
+  +'chColor.Foreground'#7#6'clNone'#28'BracketMatchColor.FrameEdges'#7#9'sfeAro'
+  +'und'#23'BracketMatchColor.Style'#11#6'fsBold'#0#26'FoldedCodeColor.Backgrou'
+  +'nd'#7#6'clNone'#26'FoldedCodeColor.Foreground'#7#6'clGray'#26'FoldedCodeCol'
+  +'or.FrameColor'#7#6'clGray'#26'FoldedCodeColor.FrameEdges'#7#9'sfeAround'#25
   +'MouseLinkColor.Background'#7#6'clNone'#25'MouseLinkColor.Foreground'#7#6'cl'
-  +'Blue'#29'LineHighlightColor.Background'#7#6'clNone'#29'LineHighlightColor.F'
-  +'oreground'#7#6'clNone'#0#244#18'TSynGutterPartList'#0#0#15'TSynGutterMarks'
-  +#0#5'Width'#2#24#12'MouseActions'#14#0#0#0#20'TSynGutterLineNumber'#0#5'Widt'
-  +'h'#2#17#12'MouseActions'#14#0#21'MarkupInfo.Background'#7#9'clBtnFace'#21'M'
-  +'arkupInfo.Foreground'#7#6'clNone'#10'DigitCount'#2#2#30'ShowOnlyLineNumbers'
-  +'MultiplesOf'#2#1#9'ZeroStart'#8#12'LeadingZeros'#8#0#0#17'TSynGutterChanges'
-  +#0#5'Width'#2#4#12'MouseActions'#14#0#13'ModifiedColor'#4#252#233#0#0#10'Sav'
-  +'edColor'#7#7'clGreen'#0#0#19'TSynGutterSeparator'#0#5'Width'#2#2#12'MouseAc'
-  +'tions'#14#0#0#0#21'TSynGutterCodeFolding'#0#12'MouseActions'#14#1#6'Button'
-  +#7#7'mbRight'#7'Command'#7#22'emcCodeFoldContextMenu'#0#1#9'ShiftMask'#11#7
-  +'ssShift'#0#6'Button'#7#8'mbMiddle'#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6
-  +'cdDown'#7'Command'#7#18'emcCodeFoldCollaps'#0#1#5'Shift'#11#7'ssShift'#0#9
-  +'ShiftMask'#11#7'ssShift'#0#6'Button'#7#8'mbMiddle'#10'ClickCount'#7#5'ccAny'
-  +#8'ClickDir'#7#6'cdDown'#7'Command'#7#18'emcCodeFoldCollaps'#6'Option'#2#1#0
-  +#1#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6'cdDown'#7'Command'#7#7'emcNone'
-  +#0#0#21'MarkupInfo.Background'#7#6'clNone'#21'MarkupInfo.Foreground'#7#6'clG'
-  +'ray'#20'MouseActionsExpanded'#14#1#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6
-  +'cdDown'#7'Command'#7#18'emcCodeFoldCollaps'#0#0#21'MouseActionsCollapsed'#14
-  +#1#5'Shift'#11#6'ssCtrl'#0#9'ShiftMask'#11#6'ssCtrl'#0#10'ClickCount'#7#5'cc'
-  +'Any'#8'ClickDir'#7#6'cdDown'#7'Command'#7#17'emcCodeFoldExpand'#0#1#9'Shift'
-  +'Mask'#11#6'ssCtrl'#0#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6'cdDown'#7'Co'
-  +'mmand'#7#17'emcCodeFoldExpand'#6'Option'#2#1#0#0#0#0#0#0#10'TSynSQLSyn'#10
-  +'SynSQLSyn1'#13'DefaultFilter'#6#23'SQL Files (*.sql)|*.sql'#7'Enabled'#8#23
-  +'CommentAttri.Foreground'#7#6'clTeal'#23'CommentAttri.FrameEdges'#7#9'sfeAro'
-  +'und'#24'DataTypeAttri.FrameEdges'#7#9'sfeAround'#30'DefaultPackageAttri.Fra'
-  +'meEdges'#7#9'sfeAround'#25'ExceptionAttri.FrameEdges'#7#9'sfeAround'#24'Fun'
-  +'ctionAttri.FrameEdges'#7#9'sfeAround'#26'IdentifierAttri.Foreground'#4'1'#26
-  +#255#0#26'IdentifierAttri.FrameEdges'#7#9'sfeAround'#19'KeyAttri.FrameEdges'
-  +#7#9'sfeAround'#22'NumberAttri.Foreground'#4'644'#0#22'NumberAttri.FrameEdge'
-  +'s'#7#9'sfeAround'#21'PLSQLAttri.FrameEdges'#7#9'sfeAround'#21'SpaceAttri.Fr'
-  +'ameEdges'#7#9'sfeAround'#23'SQLPlusAttri.FrameEdges'#7#9'sfeAround'#22'Stri'
-  +'ngAttri.Foreground'#4#161#16#16#0#22'StringAttri.FrameEdges'#7#9'sfeAround'
-  +#22'SymbolAttri.Foreground'#4'b'#8#8#0#22'SymbolAttri.FrameEdges'#7#9'sfeAro'
-  +'und'#25'TableNameAttri.Foreground'#7#6'clNavy'#25'TableNameAttri.FrameEdges'
-  +#7#9'sfeAround'#20'TableNameAttri.Style'#11#6'fsBold'#0#24'VariableAttri.Fra'
-  +'meEdges'#7#9'sfeAround'#10'SQLDialect'#7#9'sqlSybase'#4'left'#3#204#1#3'top'
-  +#2'$'#0#0#0
+  +'Blue'#25'MouseLinkColor.FrameEdges'#7#9'sfeAround'#29'LineHighlightColor.Ba'
+  +'ckground'#7#6'clNone'#29'LineHighlightColor.Foreground'#7#6'clNone'#29'Line'
+  +'HighlightColor.FrameEdges'#7#9'sfeAround'#0#244#18'TSynGutterPartList'#0#0
+  +#15'TSynGutterMarks'#0#5'Width'#2#24#12'MouseActions'#14#0#0#0#20'TSynGutter'
+  +'LineNumber'#0#5'Width'#2#17#12'MouseActions'#14#0#21'MarkupInfo.Background'
+  +#7#9'clBtnFace'#21'MarkupInfo.Foreground'#7#6'clNone'#21'MarkupInfo.FrameEdg'
+  +'es'#7#9'sfeAround'#10'DigitCount'#2#2#30'ShowOnlyLineNumbersMultiplesOf'#2#1
+  +#9'ZeroStart'#8#12'LeadingZeros'#8#0#0#17'TSynGutterChanges'#0#5'Width'#2#4
+  +#12'MouseActions'#14#0#13'ModifiedColor'#4#252#233#0#0#10'SavedColor'#7#7'cl'
+  +'Green'#0#0#19'TSynGutterSeparator'#0#5'Width'#2#2#12'MouseActions'#14#0#21
+  +'MarkupInfo.Background'#7#7'clWhite'#21'MarkupInfo.Foreground'#7#6'clGray'#21
+  +'MarkupInfo.FrameEdges'#7#9'sfeAround'#0#0#21'TSynGutterCodeFolding'#0#12'Mo'
+  +'useActions'#14#1#6'Button'#7#7'mbRight'#7'Command'#7#22'emcCodeFoldContextM'
+  +'enu'#0#1#9'ShiftMask'#11#7'ssShift'#0#6'Button'#7#8'mbMiddle'#10'ClickCount'
+  +#7#5'ccAny'#8'ClickDir'#7#6'cdDown'#7'Command'#7#18'emcCodeFoldCollaps'#0#1#5
+  +'Shift'#11#7'ssShift'#0#9'ShiftMask'#11#7'ssShift'#0#6'Button'#7#8'mbMiddle'
+  +#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6'cdDown'#7'Command'#7#18'emcCodeFo'
+  +'ldCollaps'#6'Option'#2#1#0#1#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6'cdDo'
+  +'wn'#7'Command'#7#7'emcNone'#0#0#21'MarkupInfo.Background'#7#6'clNone'#21'Ma'
+  +'rkupInfo.Foreground'#7#6'clGray'#21'MarkupInfo.FrameEdges'#7#9'sfeAround'#20
+  +'MouseActionsExpanded'#14#1#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6'cdDown'
+  +#7'Command'#7#18'emcCodeFoldCollaps'#0#0#21'MouseActionsCollapsed'#14#1#5'Sh'
+  +'ift'#11#6'ssCtrl'#0#9'ShiftMask'#11#6'ssCtrl'#0#10'ClickCount'#7#5'ccAny'#8
+  +'ClickDir'#7#6'cdDown'#7'Command'#7#17'emcCodeFoldExpand'#0#1#9'ShiftMask'#11
+  +#6'ssCtrl'#0#10'ClickCount'#7#5'ccAny'#8'ClickDir'#7#6'cdDown'#7'Command'#7
+  +#17'emcCodeFoldExpand'#6'Option'#2#1#0#0#0#0#0#0#10'TSynSQLSyn'#10'SynSQLSyn'
+  +'1'#13'DefaultFilter'#6#23'SQL Files (*.sql)|*.sql'#7'Enabled'#8#23'CommentA'
+  +'ttri.Foreground'#7#6'clTeal'#23'CommentAttri.FrameEdges'#7#9'sfeAround'#24
+  +'DataTypeAttri.FrameEdges'#7#9'sfeAround'#30'DefaultPackageAttri.FrameEdges'
+  +#7#9'sfeAround'#25'ExceptionAttri.FrameEdges'#7#9'sfeAround'#24'FunctionAttr'
+  +'i.FrameEdges'#7#9'sfeAround'#26'IdentifierAttri.Foreground'#4'1'#26#255#0#26
+  +'IdentifierAttri.FrameEdges'#7#9'sfeAround'#19'KeyAttri.FrameEdges'#7#9'sfeA'
+  +'round'#22'NumberAttri.Foreground'#4'644'#0#22'NumberAttri.FrameEdges'#7#9's'
+  +'feAround'#21'PLSQLAttri.FrameEdges'#7#9'sfeAround'#21'SpaceAttri.FrameEdges'
+  +#7#9'sfeAround'#23'SQLPlusAttri.FrameEdges'#7#9'sfeAround'#22'StringAttri.Fo'
+  +'reground'#4#161#16#16#0#22'StringAttri.FrameEdges'#7#9'sfeAround'#22'Symbol'
+  +'Attri.Foreground'#4'b'#8#8#0#22'SymbolAttri.FrameEdges'#7#9'sfeAround'#25'T'
+  +'ableNameAttri.Foreground'#7#6'clNavy'#25'TableNameAttri.FrameEdges'#7#9'sfe'
+  +'Around'#20'TableNameAttri.Style'#11#6'fsBold'#0#24'VariableAttri.FrameEdges'
+  +#7#9'sfeAround'#10'SQLDialect'#7#9'sqlSybase'#4'left'#3#204#1#3'top'#2'$'#0#0
+  ,#0
 ]);

+ 0 - 1
copytable.pas

@@ -75,7 +75,6 @@ begin
   end;
   syScript.Lines.Text:= 'select ' + Line;
   syScript.Lines.Add(' from ' + cbSourceTable.Text);
-
 end;
 
 procedure TfmCopyTable.bbCloseClick(Sender: TObject);

+ 5 - 4
main.pas

@@ -1267,6 +1267,7 @@ begin
         if (Pos('CHAR', Trim(FieldByName('Field_Type_Str').AsString)) = 0) or
          (Trim(FieldByName('Field_Collation').AsString) = 'NONE') or
          (FieldByName('Field_Collation').IsNull) then
+         //todo: use fieldtype const instead of field_type_str
         if (FieldByName('Field_Type_Str').AsString <> 'BLOB') then
           clbFields.Items.Add(FieldByName('Field_Name').AsString);
         Next;
@@ -1958,6 +1959,7 @@ begin
         ParamNames:= ParamNames + ':' + Trim(FieldByName('Field_Name').AsString);
         FieldLine:= Trim(FieldByName('Field_Name').AsString) + ' ';
         FieldLine:= FieldLine + Trim(FieldByName('Field_Type_Str').AsString);
+        //todo: verify if cstring fields also should be included
         if Pos('char', LowerCase(FieldByName('Field_Type_Str').AsString)) > 0 then
           FieldLine:= FieldLine + '(' + FieldByName('Character_Leng').AsString + ') ';
       end
@@ -1976,7 +1978,6 @@ begin
         end;
         QWindow.meQuery.Lines.Add(FieldLine);
       end;
-
     end;
     SQLQuery1.Close;
 
@@ -2003,7 +2004,6 @@ begin
     QWindow.meQuery.Lines.Add('end;');
 
     QWindow.Show;
-
   end;
 end;
 
@@ -2460,7 +2460,6 @@ begin
   Rec:= RegisteredDatabases[DatabaseIndex];
   SetConnection(DatabaseIndex);
   sqlTransaction.Commit;
-  //todo: check all occurrences and rewrite field_type_str with fmMain.GetFBTypeName function
   SQLQuery1.SQL.Text:= 'SELECT r.RDB$FIELD_NAME AS field_name, ' +
       '  r.RDB$DESCRIPTION AS field_description, ' +
       '  r.RDB$DEFAULT_SOURCE AS field_default_value, ' +
@@ -2475,7 +2474,7 @@ begin
       '    WHEN 14 THEN ''CHAR'' ' +
       '    WHEN 40 THEN ''CSTRING''  ' +
       '    WHEN 11 THEN ''D_FLOAT'' ' +
-      '    WHEN 27 THEN ''DOUBLE Precision'' ' +
+      '    WHEN 27 THEN ''DOUBLE PRECISION'' ' +
       '    WHEN 10 THEN ''FLOAT'' ' +
       '    WHEN 16 THEN ''BIGINT'' ' +
       '    WHEN 8 THEN ''INTEGER'' ' +
@@ -4261,11 +4260,13 @@ begin
         // Update SQL
         sqQuery.UpdateSQL.Add('update ' + ATableName + ' set ');
         for i:= 0 to FieldsList.Count - 1 do
+        begin
           if KeyList.IndexOf(FieldsList[i]) = -1 then
           begin
             sqQuery.UpdateSQL.Add(FieldsList[i] + ' = :' + FieldsList[i]);
             sqQuery.UpdateSQL.Add(',');
           end;
+        end;
 
         sqQuery.UpdateSQL.Delete(sqQuery.UpdateSQL.Count - 1); // Delete last comma
 

+ 1 - 1
systables.pas

@@ -732,7 +732,7 @@ end;
 
 procedure TdmSysTables.GetBasicTypes(List: TStrings);
 begin
-  List.CommaText:= List.CommaText + 'SMALLINT,INTEGER,BIGINT,VARCHAR,FLOAT,"DOUBLE Precision",CHAR,DATE,TIME,' +
+  List.CommaText:= List.CommaText + 'SMALLINT,INTEGER,BIGINT,VARCHAR,FLOAT,"DOUBLE PRECISION",CHAR,DATE,TIME,' +
     'TIMESTAMP,CSTRING,D_FLOAT,QUAD,BLOB';
 end;
 

+ 11 - 12
tablemanage.lfm

@@ -12,7 +12,7 @@ object fmTableManage: TfmTableManage
   OnClose = FormClose
   OnKeyDown = FormKeyDown
   Position = poScreenCenter
-  LCLVersion = '1.2.0.3'
+  LCLVersion = '1.2.2.0'
   object PageControl1: TPageControl
     Left = 0
     Height = 413
@@ -429,7 +429,7 @@ object fmTableManage: TfmTableManage
         Top = 139
         Width = 607
         Anchors = [akTop, akLeft, akBottom]
-        ClientHeight = 232
+        ClientHeight = 218
         ClientWidth = 603
         TabOrder = 3
         object GroupBox2: TGroupBox
@@ -438,7 +438,7 @@ object fmTableManage: TfmTableManage
           Top = 8
           Width = 585
           Caption = 'Create New Index'
-          ClientHeight = 196
+          ClientHeight = 197
           ClientWidth = 581
           TabOrder = 0
           object cbIndexType: TComboBox
@@ -447,7 +447,7 @@ object fmTableManage: TfmTableManage
             Top = 5
             Width = 150
             Color = 16249563
-            ItemHeight = 0
+            ItemHeight = 13
             ItemIndex = 1
             Items.Strings = (
               'Primary Key'
@@ -487,7 +487,7 @@ object fmTableManage: TfmTableManage
             Top = 100
             Width = 120
             AutoDropDown = True
-            ItemHeight = 0
+            ItemHeight = 13
             ItemIndex = 0
             Items.Strings = (
               'Ascending'
@@ -542,7 +542,6 @@ object fmTableManage: TfmTableManage
             Width = 232
             ItemHeight = 0
             TabOrder = 5
-            TopIndex = -1
           end
         end
       end
@@ -1196,14 +1195,14 @@ object fmTableManage: TfmTableManage
     end
     object tsReferences: TTabSheet
       Caption = 'References'
-      ClientHeight = 382
-      ClientWidth = 813
+      ClientHeight = 386
+      ClientWidth = 809
       ImageIndex = 5
       object sgReferences: TStringGrid
         Left = 0
-        Height = 278
+        Height = 282
         Top = 0
-        Width = 813
+        Width = 809
         Align = alTop
         Anchors = [akTop, akLeft, akRight, akBottom]
         ColCount = 4
@@ -1235,9 +1234,9 @@ object fmTableManage: TfmTableManage
         TabOrder = 0
       end
       object bbRefreshReferences: TBitBtn
-        Left = 697
+        Left = 693
         Height = 43
-        Top = 338
+        Top = 342
         Width = 99
         Anchors = [akRight, akBottom]
         Caption = 'Refresh'

+ 165 - 165
tablemanage.lrs

@@ -6,7 +6,7 @@ LazarusResources.Add('TfmTableManage','FORMDATA',[
   +'rs'#11#5'akTop'#6'akLeft'#7'akRight'#0#7'Caption'#6#16'Table Management'#12
   +'ClientHeight'#3#192#1#11'ClientWidth'#3'3'#3#10'KeyPreview'#9#7'OnClose'#7#9
   +'FormClose'#9'OnKeyDown'#7#11'FormKeyDown'#8'Position'#7#14'poScreenCenter'
-  +#10'LCLVersion'#6#7'1.2.0.3'#0#12'TPageControl'#12'PageControl1'#4'Left'#2#0
+  +#10'LCLVersion'#6#7'1.2.2.0'#0#12'TPageControl'#12'PageControl1'#4'Left'#2#0
   +#6'Height'#3#157#1#3'Top'#2#29#5'Width'#3'1'#3#10'ActivePage'#7#12'tsReferen'
   +'ces'#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#6'Images'#7
   +#10'ImageList1'#8'TabIndex'#2#5#8'TabOrder'#2#0#0#9'TTabSheet'#8'tsFields'#7
@@ -364,173 +364,51 @@ LazarusResources.Add('TfmTableManage','FORMDATA',[
   +#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#2#0#0#0#3#0#0#0#1#255#255
   +#255#0#255#255#255#0#7'OnClick'#7#11'bbDropClick'#8'TabOrder'#2#2#0#0#9'TGro'
   +'upBox'#9'GroupBox1'#4'Left'#2#254#6'Height'#3#236#0#3'Top'#3#139#0#5'Width'
-  +#3'_'#2#7'Anchors'#11#5'akTop'#6'akLeft'#8'akBottom'#0#12'ClientHeight'#3#232
+  +#3'_'#2#7'Anchors'#11#5'akTop'#6'akLeft'#8'akBottom'#0#12'ClientHeight'#3#218
   +#0#11'ClientWidth'#3'['#2#8'TabOrder'#2#3#0#9'TGroupBox'#9'GroupBox2'#4'Left'
   +#2#6#6'Height'#3#215#0#3'Top'#2#8#5'Width'#3'I'#2#7'Caption'#6#16'Create New'
-  +' Index'#12'ClientHeight'#3#196#0#11'ClientWidth'#3'E'#2#8'TabOrder'#2#0#0#9
+  +' Index'#12'ClientHeight'#3#197#0#11'ClientWidth'#3'E'#2#8'TabOrder'#2#0#0#9
   +'TComboBox'#11'cbIndexType'#4'Left'#2'}'#6'Height'#2#21#3'Top'#2#5#5'Width'#3
-  +#150#0#5'Color'#4#219#242#247#0#10'ItemHeight'#2#0#9'ItemIndex'#2#1#13'Items'
-  +'.Strings'#1#6#11'Primary Key'#6#15'Secondary Index'#0#8'OnChange'#7#17'cbIn'
-  +'dexTypeChange'#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#0#4'Text'#6#15'S'
-  +'econdary Index'#0#0#5'TEdit'#11'edIndexName'#4'Left'#2'}'#6'Height'#2#27#3
+  +#150#0#5'Color'#4#219#242#247#0#10'ItemHeight'#2#13#9'ItemIndex'#2#1#13'Item'
+  +'s.Strings'#1#6#11'Primary Key'#6#15'Secondary Index'#0#8'OnChange'#7#17'cbI'
+  +'ndexTypeChange'#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#0#4'Text'#6#15
+  +'Secondary Index'#0#0#5'TEdit'#11'edIndexName'#4'Left'#2'}'#6'Height'#2#27#3
   +'Top'#2''''#5'Width'#3#150#0#8'TabOrder'#2#1#0#0#6'TLabel'#6'Label3'#4'Left'
   +#2#9#6'Height'#2#18#3'Top'#2','#5'Width'#2'o'#7'Caption'#6#14'New index name'
   +#11'ParentColor'#8#0#0#9'TCheckBox'#8'cxUnique'#4'Left'#2#9#6'Height'#2#24#3
   +'Top'#2'M'#5'Width'#2'W'#7'Caption'#6#9'Is Unique'#8'TabOrder'#2#2#0#0#9'TCo'
   +'mboBox'#10'cbSortType'#4'Left'#2'~'#6'Height'#2#21#3'Top'#2'd'#5'Width'#2'x'
-  +#12'AutoDropDown'#9#10'ItemHeight'#2#0#9'ItemIndex'#2#0#13'Items.Strings'#1#6
-  +#9'Ascending'#6#10'Descending'#0#11'ParentColor'#9#5'Style'#7#14'csDropDownL'
-  +'ist'#8'TabOrder'#2#3#4'Text'#6#9'Ascending'#0#0#7'TBitBtn'#13'bbCreateIndex'
-  +#4'Left'#2#9#6'Height'#2'-'#3'Top'#3#141#0#5'Width'#2'|'#7'Caption'#6#12'Cre'
-  +'ate Index'#5'Color'#4#219#242#247#0#7'Default'#9#4'Kind'#7#4'bkOK'#11'Modal'
-  +'Result'#2#1#7'OnClick'#7#18'bbCreateIndexClick'#8'TabOrder'#2#4#0#0#6'TLabe'
-  +'l'#6'Label1'#4'Left'#2#9#6'Height'#2#18#3'Top'#2#12#5'Width'#2'!'#7'Caption'
-  ,#6#4'Type'#11'ParentColor'#8#0#0#6'TLabel'#6'Label4'#4'Left'#2#12#6'Height'#2
-  +#18#3'Top'#2'm'#5'Width'#2'?'#7'Caption'#6#9'Direction'#11'ParentColor'#8#0#0
-  +#6'TLabel'#6'Label2'#4'Left'#3'>'#1#6'Height'#2#18#3'Top'#2#12#5'Width'#3#176
-  +#0#7'Caption'#6#26'Create new index on fields'#11'ParentColor'#8#0#0#13'TChe'
-  +'ckListBox'#9'clbFields'#4'Left'#3'>'#1#6'Height'#3#152#0#3'Top'#2#31#5'Widt'
-  +'h'#3#232#0#10'ItemHeight'#2#0#8'TabOrder'#2#5#8'TopIndex'#2#255#0#0#0#0#0#9
-  +'TTabSheet'#13'tsConstraints'#7'Caption'#6#11'Constraints'#12'ClientHeight'#3
-  +'~'#1#11'ClientWidth'#3'-'#3#10'ImageIndex'#2#3#0#7'TBitBtn'#19'bbRefreshCon'
-  +'straint'#4'Left'#3#185#2#6'Height'#2'+'#3'Top'#3'R'#1#5'Width'#2'c'#7'Ancho'
-  +'rs'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#7'Refresh'#5'Color'#4#219#242
-  +#247#0#4'Kind'#7#7'bkRetry'#7'OnClick'#7#24'bbRefreshConstraintClick'#8'TabO'
-  +'rder'#2#0#0#0#11'TStringGrid'#13'sgConstraints'#4'Left'#2#255#6'Height'#3'M'
-  +#1#3'Top'#2#255#5'Width'#3'/'#3#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8
-  +'akBottom'#0#8'ColCount'#2#7#7'Columns'#14#1#13'Title.Caption'#6#15'Constrai'
-  +'nt Name'#5'Width'#2'x'#0#1#13'Title.Caption'#6#8'Key name'#5'Width'#2'd'#0#1
-  +#13'Title.Caption'#6#9'On Fields'#5'Width'#2'x'#0#1#13'Title.Caption'#6#13'F'
-  +'oreign Table'#5'Width'#2'd'#0#1#13'Title.Caption'#6#11'Foriegn Key'#5'Width'
-  +#2'd'#0#1#13'Title.Caption'#6#11'Update Rule'#5'Width'#2'd'#0#1#13'Title.Cap'
-  +'tion'#6#11'Delete Rule'#5'Width'#2'd'#0#0#10'FixedColor'#4#207#218#221#0#9
-  +'FixedCols'#2#0#7'Options'#11#15'goFixedVertLine'#15'goFixedHorzLine'#10'goV'
-  +'ertLine'#10'goHorzLine'#13'goRangeSelect'#11'goColSizing'#11'goRowSelect'#14
-  +'goSmoothScroll'#0#8'RowCount'#2#2#8'TabOrder'#2#1#0#0#7'TBitBtn'#15'bbNewCo'
-  +'nstraint'#4'Left'#2#6#6'Height'#2'+'#3'Top'#3'R'#1#5'Width'#3#144#0#7'Ancho'
-  +'rs'#11#6'akLeft'#8'akBottom'#0#7'Caption'#6#14'New Constraint'#5'Color'#4
-  +#219#242#247#0#10'Glyph.Data'#10':'#9#0#0'6'#9#0#0'BM6'#9#0#0#0#0#0#0'6'#0#0
-  +#0'('#0#0#0#24#0#0#0#24#0#0#0#1#0' '#0#0#0#0#0#0#9#0#0'd'#0#0#0'd'#0#0#0#0#0
-  +#0#0#0#0#0#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#0#0#0#1#255#255#255#0#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#1#0#0#0#2#0#0
-  +#0#2''''#0#0#26#0#0#0#4'%'#22'7/9'#0#0#9'U'#0#0#3'@'#0#0#4#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0#255#255#255#0#0#0#0#1'&?}-%'#0#0')'#31']'#198'f'#31'F'#153#212
-  +'"0nF'#20'f'#228#241'$'#9#19'R'#19'I'#171#136#31#25'>o@'#0#0#8'3'#0#0#5#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#1'3'#0#0
-  +#10'$'#0#0#14'%l'#220#189'$V'#178#228' ^'#198#215#28'u'#251#255#27'b'#215#242
-  +#22's'#254#255#24'R'#185#230#16'n'#253#254#27'0q'#180#23'<'#142#131#24',j'
-  +#140'+'#0#0#6#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#5'.l'#210#168
-  +'*L'#150#213')h'#209#226'&|'#253#255'#z'#253#255' x'#253#255#28'v'#253#255#25
-  +'t'#254#255#22's'#254#255#19'q'#254#255#17'f'#233#250#13'm'#254#255#23'6'#130
-  +#173'#'#0#0#29'('#0#0' '#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0#255#255#255#0#255#255#255#0'33g'#10''''#8#12'@0h'#199#152'0'
-  +#129#252#255'-'#127#253#255')~'#253#255'&|'#253#255'#z'#253#255' x'#253#255
-  +#29'v'#253#255#26'u'#254#255#22's'#254#255#19'q'#254#255#16'o'#254#255#18'U'
-  +#197#238#13'b'#231#247#25'/o'#131'+'#0#0#6#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0';'#127#230'M:'#133#249
-  +#253'5|'#235#250'3'#131#252#255'0'#129#252#255'-'#128#253#255'*~'#253#255''''
-  +'|'#253#255'#z'#253#255' x'#253#255#29'w'#253#255#26'u'#254#255#23's'#254#255
-  +#19'q'#254#255#16'o'#254#255#15'c'#228#248'%'#6#12'Y%'#4#8'?$'#0#0#7#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0' '#0#0#8'&'#0#0'6:z'#225#229
-  +':'#135#252#255'7'#133#252#255'3'#131#252#255'0'#130#252#255'-'#128#253#255
-  +'*~'#253#255'''|'#253#255'$z'#253#255' y'#253#255#29'w'#253#255#26'u'#254#255
-  +#23's'#254#255#20'q'#254#255#17'p'#253#255#14'l'#249#254#17'P'#188#216' '#0#0
-  +#8#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#1'C}'#221'rC'#140#250#254
-  +'@'#139#252#255'='#137#252#255':'#135#252#255'7'#133#252#255'4'#132#252#255
-  +'1'#130#252#255'-'#128#253#255'*~'#253#255'''|'#253#255'${'#253#255'!y'#253
-  +#255#30'w'#253#255#26'u'#254#255#23's'#254#255#20'q'#254#255#18'j'#242#252' '
-  +#21'.o!'#0#0#23#0#0#0#1#255#255#255#0#255#255#255#0#255#255#255#0'7%J'#14'C}'
-  +#220#206'D'#141#251#255'A'#139#252#255'>'#137#252#255':'#135#252#255'7'#134
-  ,#252#255'4'#132#252#255'1'#130#252#255'.'#128#253#255'*~'#253#255'''|'#253
-  +#255'${'#253#255'!y'#253#255#30'w'#253#255#27'u'#254#255#23's'#254#255#20'r'
-  +#254#255#18'k'#242#251#24'A'#151#193'+'#0#0#6#255#255#255#0#255#255#255#0'Kw'
-  +#205#24'Hx'#207#212'I'#140#243#253'G'#143#251#255'D'#141#251#255'A'#139#252
-  +#255'>'#137#252#255';'#136#252#255'8'#134#252#255'4'#132#252#255'1'#130#252
-  +#255'.'#128#253#255'+~'#253#255'(}'#253#255'${'#253#255'!y'#253#255#30'w'#253
-  +#255#27'u'#254#255#24't'#254#255#24'Z'#201#232#29'$T*'#0#0#0#2#255#255#255#0
-  +#255#255#255#0#0#0#0#1'L'#130#220'qM'#143#244#249'K'#145#251#255'H'#143#251
-  +#255'D'#141#251#255'A'#139#252#255'>'#137#252#255';'#136#252#255'8'#134#252
-  +#255'5'#132#252#255'1'#130#252#255'.'#128#253#255'+'#127#253#255'(}'#253#255
-  +'%{'#253#255'"y'#253#255#30'w'#253#255#27'v'#254#255#25'i'#230#249#29'>'#138
-  +#201''''#0#0'!'#0#0#0#2#255#255#255#0'@'#0#0#4'Dd'#166#150'O'#142#241#251'N'
-  +#147#251#255'K'#145#251#255'H'#143#251#255'E'#141#251#255'A'#139#251#255'>'
-  +#138#252#255';'#136#252#255'8'#134#252#255'5'#132#252#255'2'#130#252#255'/'
-  +#129#253#255'+'#127#253#255'(}'#253#255'%{'#253#255'"y'#253#255#31'x'#253#255
-  +#28'l'#232#246#27'U'#186#150'@'#0#0#4#255#255#255#0#255#255#255#0'V'#135#232
-  +#21'S'#138#228#193'T'#147#244#250'R'#149#251#255'N'#147#251#255'K'#145#251
-  +#255'H'#143#251#255'E'#141#251#255'B'#140#251#255'?'#138#252#255';'#136#252
-  +#255'8'#134#252#255'5'#132#252#255'2'#131#252#255'/'#129#252#255','#127#253
-  +#255'(}'#253#255'%{'#253#255'"y'#253#255' ]'#197#237'$'#16'&^@'#0#0#4#255#255
-  +#255#0#255#255#255#0#255#255#255#0';(O'#13'P~'#208#216'U'#151#250#255'R'#149
-  +#251#255'O'#147#251#255'L'#145#251#255'H'#143#251#255'E'#142#251#255'B'#140
-  +#251#255'?'#138#252#255'<'#136#252#255'8'#134#252#255'5'#132#252#255'2'#131
-  +#252#255'/'#129#252#255','#127#253#255')}'#253#255'&{'#253#255'"u'#243#249'!'
-  +'R'#172#167'3'#0#0#5#255#255#255#0#255#255#255#0#0#0#0#1'Z'#135#216'u\'#154
-  +#249#254'Y'#153#250#255'U'#151#250#255'R'#149#251#255'O'#147#251#255'L'#145
-  +#251#255'I'#144#251#255'F'#142#251#255'B'#140#251#255'?'#138#252#255'<'#136
-  +#252#255'9'#134#252#255'6'#133#252#255'2'#131#252#255'/'#129#252#255','#127
-  +#253#255')x'#241#252''''#22',u9'#0#0#9#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#0#0#0#2'.'#0#0#11'W'#138#223#228'Y'#153#250#255'V'#151
-  +#250#255'R'#149#251#255'O'#147#251#255'L'#145#251#255'I'#144#251#255'F'#142
-  +#251#255'C'#140#251#255'?'#138#252#255'<'#136#252#255'9'#135#252#255'6'#133
-  +#252#255'3'#131#252#255'0'#128#251#255',}'#249#253')`'#194#209'3'#0#0#10#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0'_'#143#230
-  +'M^'#154#247#253'Y'#148#238#244'Y'#153#250#255'V'#151#250#255'S'#149#251#255
-  +'P'#147#251#255'L'#146#251#255'I'#144#251#255'F'#142#251#255'C'#140#251#255
-  +'@'#138#252#255'='#137#252#255'9'#135#252#255'6'#133#252#255'2w'#227#247'('#7
-  +#14'K/'#23'/'#11#0#0#0#1#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0'f'#153#205#5'//F'#11'V'#129#205#146']'#155#250#255'Y'
-  +#153#250#255'V'#151#250#255'S'#149#251#255'P'#148#251#255'M'#146#251#255'I'
-  +#144#251#255'F'#142#251#255'C'#140#251#255'@'#139#252#255'='#137#252#255'6n'
-  +#206#226'6~'#239#237'+@{t@'#0#0#4#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#2'\'#141#222
-  +#157'Rz'#193#163'X'#139#224#207'Z'#153#250#255'V'#151#250#255'S'#150#251#255
-  +'P'#148#251#255'M'#146#251#255'J'#144#251#255'G'#142#251#255'A'#131#232#247
-  +'@'#139#252#255'1D~'#176'3'#0#0#10'U'#0#0#3#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#0#0#0#2'+'#0#0#6'Z'#141#224#183'Qz'#198#202'T'#136#222
-  +#189'V'#151#249#254'P'#135#226#228'P'#148#251#255'Ft'#200#211'I'#144#250#254
-  +'6F{'#164'>z'#219'T9a'#172'T'#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255
-  +#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0'`'#150#235#24'3'#0#0#5
-  +'Z'#145#232'UMs'#186#171'Ho'#178')P'#141#236#232'/'#21')%H'#133#229'd8Cx9'#0
-  +#0#0#2#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0'@'#0#0#4#255#255#255#0'Io'#184#14#0#0#0#2#255#255#255#0#0#0#0
-  +#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
-  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
-  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
-  +#7'OnClick'#7#20'bbNewConstraintClick'#8'TabOrder'#2#2#0#0#7'TBitBtn'#16'bbD'
-  ,'ropConstraint'#4'Left'#3#160#0#6'Height'#2'+'#3'Top'#3'R'#1#5'Width'#2'K'#7
-  +'Anchors'#11#6'akLeft'#8'akBottom'#0#7'Caption'#6#4'Drop'#5'Color'#4#219#242
-  +#247#0#4'Kind'#7#8'bkIgnore'#7'OnClick'#7#21'bbDropConstraintClick'#8'TabOrd'
-  +'er'#2#3#0#0#0#9'TTabSheet'#10'tsTriggers'#7'Caption'#6#8'Triggers'#12'Clien'
-  +'tHeight'#3'~'#1#11'ClientWidth'#3'-'#3#10'ImageIndex'#2#1#0#11'TStringGrid'
-  +#10'sgTriggers'#4'Left'#2#0#6'Height'#3'D'#1#3'Top'#2#255#5'Width'#3#27#3#7
-  +'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#8'ColCount'#2#2#7'C'
-  +'olumns'#14#1#13'Title.Caption'#6#12'Trigger Name'#5'Width'#3#160#0#0#1#11'B'
-  +'uttonStyle'#7#17'cbsCheckboxColumn'#13'Title.Caption'#6#6'Active'#5'Width'#2
-  +'d'#0#0#10'FixedColor'#4#207#218#221#0#9'FixedCols'#2#0#7'Options'#11#15'goF'
-  +'ixedVertLine'#15'goFixedHorzLine'#10'goVertLine'#10'goHorzLine'#13'goRangeS'
-  +'elect'#11'goColSizing'#11'goRowSelect'#14'goSmoothScroll'#0#8'RowCount'#2#2
-  +#8'TabOrder'#2#0#0#0#7'TBitBtn'#17'bbRefreshTriggers'#4'Left'#3#196#2#6'Heig'
-  +'ht'#2'.'#3'Top'#3'L'#1#5'Width'#2'W'#7'Anchors'#11#7'akRight'#8'akBottom'#0
-  +#7'Caption'#6#7'Refresh'#5'Color'#4#219#242#247#0#4'Kind'#7#7'bkRetry'#7'OnC'
-  +'lick'#7#22'bbRefreshTriggersClick'#8'TabOrder'#2#1#0#0#7'TBitBtn'#12'bbNewT'
-  +'rigger'#4'Left'#2#6#6'Height'#2'.'#3'Top'#3'L'#1#5'Width'#2'~'#7'Anchors'#11
-  +#6'akLeft'#8'akBottom'#0#7'Caption'#6#11'New Trigger'#5'Color'#4#219#242#247
+  +#12'AutoDropDown'#9#10'ItemHeight'#2#13#9'ItemIndex'#2#0#13'Items.Strings'#1
+  +#6#9'Ascending'#6#10'Descending'#0#11'ParentColor'#9#5'Style'#7#14'csDropDow'
+  +'nList'#8'TabOrder'#2#3#4'Text'#6#9'Ascending'#0#0#7'TBitBtn'#13'bbCreateInd'
+  +'ex'#4'Left'#2#9#6'Height'#2'-'#3'Top'#3#141#0#5'Width'#2'|'#7'Caption'#6#12
+  +'Create Index'#5'Color'#4#219#242#247#0#7'Default'#9#4'Kind'#7#4'bkOK'#11'Mo'
+  +'dalResult'#2#1#7'OnClick'#7#18'bbCreateIndexClick'#8'TabOrder'#2#4#0#0#6'TL'
+  +'abel'#6'Label1'#4'Left'#2#9#6'Height'#2#18#3'Top'#2#12#5'Width'#2'!'#7'Capt'
+  ,'ion'#6#4'Type'#11'ParentColor'#8#0#0#6'TLabel'#6'Label4'#4'Left'#2#12#6'Hei'
+  +'ght'#2#18#3'Top'#2'm'#5'Width'#2'?'#7'Caption'#6#9'Direction'#11'ParentColo'
+  +'r'#8#0#0#6'TLabel'#6'Label2'#4'Left'#3'>'#1#6'Height'#2#18#3'Top'#2#12#5'Wi'
+  +'dth'#3#176#0#7'Caption'#6#26'Create new index on fields'#11'ParentColor'#8#0
+  +#0#13'TCheckListBox'#9'clbFields'#4'Left'#3'>'#1#6'Height'#3#152#0#3'Top'#2
+  +#31#5'Width'#3#232#0#10'ItemHeight'#2#0#8'TabOrder'#2#5#0#0#0#0#0#9'TTabShee'
+  +'t'#13'tsConstraints'#7'Caption'#6#11'Constraints'#12'ClientHeight'#3'~'#1#11
+  +'ClientWidth'#3'-'#3#10'ImageIndex'#2#3#0#7'TBitBtn'#19'bbRefreshConstraint'
+  +#4'Left'#3#185#2#6'Height'#2'+'#3'Top'#3'R'#1#5'Width'#2'c'#7'Anchors'#11#7
+  +'akRight'#8'akBottom'#0#7'Caption'#6#7'Refresh'#5'Color'#4#219#242#247#0#4'K'
+  +'ind'#7#7'bkRetry'#7'OnClick'#7#24'bbRefreshConstraintClick'#8'TabOrder'#2#0
+  +#0#0#11'TStringGrid'#13'sgConstraints'#4'Left'#2#255#6'Height'#3'M'#1#3'Top'
+  +#2#255#5'Width'#3'/'#3#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBotto'
+  +'m'#0#8'ColCount'#2#7#7'Columns'#14#1#13'Title.Caption'#6#15'Constraint Name'
+  +#5'Width'#2'x'#0#1#13'Title.Caption'#6#8'Key name'#5'Width'#2'd'#0#1#13'Titl'
+  +'e.Caption'#6#9'On Fields'#5'Width'#2'x'#0#1#13'Title.Caption'#6#13'Foreign '
+  +'Table'#5'Width'#2'd'#0#1#13'Title.Caption'#6#11'Foriegn Key'#5'Width'#2'd'#0
+  +#1#13'Title.Caption'#6#11'Update Rule'#5'Width'#2'd'#0#1#13'Title.Caption'#6
+  +#11'Delete Rule'#5'Width'#2'd'#0#0#10'FixedColor'#4#207#218#221#0#9'FixedCol'
+  +'s'#2#0#7'Options'#11#15'goFixedVertLine'#15'goFixedHorzLine'#10'goVertLine'
+  +#10'goHorzLine'#13'goRangeSelect'#11'goColSizing'#11'goRowSelect'#14'goSmoot'
+  +'hScroll'#0#8'RowCount'#2#2#8'TabOrder'#2#1#0#0#7'TBitBtn'#15'bbNewConstrain'
+  +'t'#4'Left'#2#6#6'Height'#2'+'#3'Top'#3'R'#1#5'Width'#3#144#0#7'Anchors'#11#6
+  +'akLeft'#8'akBottom'#0#7'Caption'#6#14'New Constraint'#5'Color'#4#219#242#247
   +#0#10'Glyph.Data'#10':'#9#0#0'6'#9#0#0'BM6'#9#0#0#0#0#0#0'6'#0#0#0'('#0#0#0
   +#24#0#0#0#24#0#0#0#1#0' '#0#0#0#0#0#0#9#0#0'd'#0#0#0'd'#0#0#0#0#0#0#0#0#0#0#0
   +#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
@@ -571,6 +449,128 @@ LazarusResources.Add('TfmTableManage','FORMDATA',[
   +#255#26'u'#254#255#23's'#254#255#20'q'#254#255#18'j'#242#252' '#21'.o!'#0#0
   +#23#0#0#0#1#255#255#255#0#255#255#255#0#255#255#255#0'7%J'#14'C}'#220#206'D'
   +#141#251#255'A'#139#252#255'>'#137#252#255':'#135#252#255'7'#134#252#255'4'
+  ,#132#252#255'1'#130#252#255'.'#128#253#255'*~'#253#255'''|'#253#255'${'#253
+  +#255'!y'#253#255#30'w'#253#255#27'u'#254#255#23's'#254#255#20'r'#254#255#18
+  +'k'#242#251#24'A'#151#193'+'#0#0#6#255#255#255#0#255#255#255#0'Kw'#205#24'Hx'
+  +#207#212'I'#140#243#253'G'#143#251#255'D'#141#251#255'A'#139#252#255'>'#137
+  +#252#255';'#136#252#255'8'#134#252#255'4'#132#252#255'1'#130#252#255'.'#128
+  +#253#255'+~'#253#255'(}'#253#255'${'#253#255'!y'#253#255#30'w'#253#255#27'u'
+  +#254#255#24't'#254#255#24'Z'#201#232#29'$T*'#0#0#0#2#255#255#255#0#255#255
+  +#255#0#0#0#0#1'L'#130#220'qM'#143#244#249'K'#145#251#255'H'#143#251#255'D'
+  +#141#251#255'A'#139#252#255'>'#137#252#255';'#136#252#255'8'#134#252#255'5'
+  +#132#252#255'1'#130#252#255'.'#128#253#255'+'#127#253#255'(}'#253#255'%{'#253
+  +#255'"y'#253#255#30'w'#253#255#27'v'#254#255#25'i'#230#249#29'>'#138#201''''
+  +#0#0'!'#0#0#0#2#255#255#255#0'@'#0#0#4'Dd'#166#150'O'#142#241#251'N'#147#251
+  +#255'K'#145#251#255'H'#143#251#255'E'#141#251#255'A'#139#251#255'>'#138#252
+  +#255';'#136#252#255'8'#134#252#255'5'#132#252#255'2'#130#252#255'/'#129#253
+  +#255'+'#127#253#255'(}'#253#255'%{'#253#255'"y'#253#255#31'x'#253#255#28'l'
+  +#232#246#27'U'#186#150'@'#0#0#4#255#255#255#0#255#255#255#0'V'#135#232#21'S'
+  +#138#228#193'T'#147#244#250'R'#149#251#255'N'#147#251#255'K'#145#251#255'H'
+  +#143#251#255'E'#141#251#255'B'#140#251#255'?'#138#252#255';'#136#252#255'8'
+  +#134#252#255'5'#132#252#255'2'#131#252#255'/'#129#252#255','#127#253#255'(}'
+  +#253#255'%{'#253#255'"y'#253#255' ]'#197#237'$'#16'&^@'#0#0#4#255#255#255#0
+  +#255#255#255#0#255#255#255#0';(O'#13'P~'#208#216'U'#151#250#255'R'#149#251
+  +#255'O'#147#251#255'L'#145#251#255'H'#143#251#255'E'#142#251#255'B'#140#251
+  +#255'?'#138#252#255'<'#136#252#255'8'#134#252#255'5'#132#252#255'2'#131#252
+  +#255'/'#129#252#255','#127#253#255')}'#253#255'&{'#253#255'"u'#243#249'!R'
+  +#172#167'3'#0#0#5#255#255#255#0#255#255#255#0#0#0#0#1'Z'#135#216'u\'#154#249
+  +#254'Y'#153#250#255'U'#151#250#255'R'#149#251#255'O'#147#251#255'L'#145#251
+  +#255'I'#144#251#255'F'#142#251#255'B'#140#251#255'?'#138#252#255'<'#136#252
+  +#255'9'#134#252#255'6'#133#252#255'2'#131#252#255'/'#129#252#255','#127#253
+  +#255')x'#241#252''''#22',u9'#0#0#9#255#255#255#0#255#255#255#0#255#255#255#0
+  +#255#255#255#0#0#0#0#2'.'#0#0#11'W'#138#223#228'Y'#153#250#255'V'#151#250#255
+  +'R'#149#251#255'O'#147#251#255'L'#145#251#255'I'#144#251#255'F'#142#251#255
+  +'C'#140#251#255'?'#138#252#255'<'#136#252#255'9'#135#252#255'6'#133#252#255
+  +'3'#131#252#255'0'#128#251#255',}'#249#253')`'#194#209'3'#0#0#10#255#255#255
+  +#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0'_'#143#230'M^'#154
+  +#247#253'Y'#148#238#244'Y'#153#250#255'V'#151#250#255'S'#149#251#255'P'#147
+  +#251#255'L'#146#251#255'I'#144#251#255'F'#142#251#255'C'#140#251#255'@'#138
+  +#252#255'='#137#252#255'9'#135#252#255'6'#133#252#255'2w'#227#247'('#7#14'K/'
+  +#23'/'#11#0#0#0#1#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0'f'#153#205#5'//F'#11'V'#129#205#146']'#155#250#255'Y'#153#250#255
+  +'V'#151#250#255'S'#149#251#255'P'#148#251#255'M'#146#251#255'I'#144#251#255
+  +'F'#142#251#255'C'#140#251#255'@'#139#252#255'='#137#252#255'6n'#206#226'6~'
+  +#239#237'+@{t@'#0#0#4#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+  +#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#2'\'#141#222#157'Rz'#193#163
+  +'X'#139#224#207'Z'#153#250#255'V'#151#250#255'S'#150#251#255'P'#148#251#255
+  +'M'#146#251#255'J'#144#251#255'G'#142#251#255'A'#131#232#247'@'#139#252#255
+  +'1D~'#176'3'#0#0#10'U'#0#0#3#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#0#0#0#2'+'#0#0#6'Z'#141#224#183'Qz'#198#202'T'#136#222#189'V'#151#249
+  +#254'P'#135#226#228'P'#148#251#255'Ft'#200#211'I'#144#250#254'6F{'#164'>z'
+  +#219'T9a'#172'T'#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+  +#255#255#255#0#255#255#255#0#255#255#255#0'`'#150#235#24'3'#0#0#5'Z'#145#232
+  +'UMs'#186#171'Ho'#178')P'#141#236#232'/'#21')%H'#133#229'd8Cx9'#0#0#0#2#0#0#0
+  +#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+  +'@'#0#0#4#255#255#255#0'Io'#184#14#0#0#0#2#255#255#255#0#0#0#0#2#255#255#255
+  +#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+  +#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#7'OnClick'#7
+  +#20'bbNewConstraintClick'#8'TabOrder'#2#2#0#0#7'TBitBtn'#16'bbDropConstraint'
+  ,#4'Left'#3#160#0#6'Height'#2'+'#3'Top'#3'R'#1#5'Width'#2'K'#7'Anchors'#11#6
+  +'akLeft'#8'akBottom'#0#7'Caption'#6#4'Drop'#5'Color'#4#219#242#247#0#4'Kind'
+  +#7#8'bkIgnore'#7'OnClick'#7#21'bbDropConstraintClick'#8'TabOrder'#2#3#0#0#0#9
+  +'TTabSheet'#10'tsTriggers'#7'Caption'#6#8'Triggers'#12'ClientHeight'#3'~'#1
+  +#11'ClientWidth'#3'-'#3#10'ImageIndex'#2#1#0#11'TStringGrid'#10'sgTriggers'#4
+  +'Left'#2#0#6'Height'#3'D'#1#3'Top'#2#255#5'Width'#3#27#3#7'Anchors'#11#5'akT'
+  +'op'#6'akLeft'#7'akRight'#8'akBottom'#0#8'ColCount'#2#2#7'Columns'#14#1#13'T'
+  +'itle.Caption'#6#12'Trigger Name'#5'Width'#3#160#0#0#1#11'ButtonStyle'#7#17
+  +'cbsCheckboxColumn'#13'Title.Caption'#6#6'Active'#5'Width'#2'd'#0#0#10'Fixed'
+  +'Color'#4#207#218#221#0#9'FixedCols'#2#0#7'Options'#11#15'goFixedVertLine'#15
+  +'goFixedHorzLine'#10'goVertLine'#10'goHorzLine'#13'goRangeSelect'#11'goColSi'
+  +'zing'#11'goRowSelect'#14'goSmoothScroll'#0#8'RowCount'#2#2#8'TabOrder'#2#0#0
+  +#0#7'TBitBtn'#17'bbRefreshTriggers'#4'Left'#3#196#2#6'Height'#2'.'#3'Top'#3
+  +'L'#1#5'Width'#2'W'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#7'Re'
+  +'fresh'#5'Color'#4#219#242#247#0#4'Kind'#7#7'bkRetry'#7'OnClick'#7#22'bbRefr'
+  +'eshTriggersClick'#8'TabOrder'#2#1#0#0#7'TBitBtn'#12'bbNewTrigger'#4'Left'#2
+  +#6#6'Height'#2'.'#3'Top'#3'L'#1#5'Width'#2'~'#7'Anchors'#11#6'akLeft'#8'akBo'
+  +'ttom'#0#7'Caption'#6#11'New Trigger'#5'Color'#4#219#242#247#0#10'Glyph.Data'
+  +#10':'#9#0#0'6'#9#0#0'BM6'#9#0#0#0#0#0#0'6'#0#0#0'('#0#0#0#24#0#0#0#24#0#0#0
+  +#1#0' '#0#0#0#0#0#0#9#0#0'd'#0#0#0'd'#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#0#0#0#1#255#255#255#0#0#0#0
+  +#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+  +#255#255#255#0#255#255#255#0#0#0#0#1#0#0#0#2#0#0#0#2''''#0#0#26#0#0#0#4'%'#22
+  +'7/9'#0#0#9'U'#0#0#3'@'#0#0#4#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+  +#0#0#0#1'&?}-%'#0#0')'#31']'#198'f'#31'F'#153#212'"0nF'#20'f'#228#241'$'#9#19
+  +'R'#19'I'#171#136#31#25'>o@'#0#0#8'3'#0#0#5#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#0#0#0#1'3'#0#0#10'$'#0#0#14'%l'#220#189'$'
+  +'V'#178#228' ^'#198#215#28'u'#251#255#27'b'#215#242#22's'#254#255#24'R'#185
+  +#230#16'n'#253#254#27'0q'#180#23'<'#142#131#24',j'#140'+'#0#0#6#0#0#0#2#255
+  +#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0#0#0#0#5'.l'#210#168'*L'#150#213')h'#209
+  +#226'&|'#253#255'#z'#253#255' x'#253#255#28'v'#253#255#25't'#254#255#22's'
+  +#254#255#19'q'#254#255#17'f'#233#250#13'm'#254#255#23'6'#130#173'#'#0#0#29'('
+  +#0#0' '#0#0#0#2#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+  +#255#255#0#255#255#255#0'33g'#10''''#8#12'@0h'#199#152'0'#129#252#255'-'#127
+  +#253#255')~'#253#255'&|'#253#255'#z'#253#255' x'#253#255#29'v'#253#255#26'u'
+  +#254#255#22's'#254#255#19'q'#254#255#16'o'#254#255#18'U'#197#238#13'b'#231
+  +#247#25'/o'#131'+'#0#0#6#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+  +#255#0#255#255#255#0#255#255#255#0';'#127#230'M:'#133#249#253'5|'#235#250'3'
+  +#131#252#255'0'#129#252#255'-'#128#253#255'*~'#253#255'''|'#253#255'#z'#253
+  +#255' x'#253#255#29'w'#253#255#26'u'#254#255#23's'#254#255#19'q'#254#255#16
+  +'o'#254#255#15'c'#228#248'%'#6#12'Y%'#4#8'?$'#0#0#7#255#255#255#0#255#255#255
+  +#0#255#255#255#0#255#255#255#0' '#0#0#8'&'#0#0'6:z'#225#229':'#135#252#255'7'
+  +#133#252#255'3'#131#252#255'0'#130#252#255'-'#128#253#255'*~'#253#255'''|'
+  +#253#255'$z'#253#255' y'#253#255#29'w'#253#255#26'u'#254#255#23's'#254#255#20
+  +'q'#254#255#17'p'#253#255#14'l'#249#254#17'P'#188#216' '#0#0#8#255#255#255#0
+  +#255#255#255#0#255#255#255#0#0#0#0#1'C}'#221'rC'#140#250#254'@'#139#252#255
+  +'='#137#252#255':'#135#252#255'7'#133#252#255'4'#132#252#255'1'#130#252#255
+  +'-'#128#253#255'*~'#253#255'''|'#253#255'${'#253#255'!y'#253#255#30'w'#253
+  +#255#26'u'#254#255#23's'#254#255#20'q'#254#255#18'j'#242#252' '#21'.o!'#0#0
+  +#23#0#0#0#1#255#255#255#0#255#255#255#0#255#255#255#0'7%J'#14'C}'#220#206'D'
+  +#141#251#255'A'#139#252#255'>'#137#252#255':'#135#252#255'7'#134#252#255'4'
   +#132#252#255'1'#130#252#255'.'#128#253#255'*~'#253#255'''|'#253#255'${'#253
   +#255'!y'#253#255#30'w'#253#255#27'u'#254#255#23's'#254#255#20'r'#254#255#18
   +'k'#242#251#24'A'#151#193'+'#0#0#6#255#255#255#0#255#255#255#0'Kw'#205#24'Hx'
@@ -965,9 +965,9 @@ LazarusResources.Add('TfmTableManage','FORMDATA',[
   +#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
   +#255#255#255#0#255#255#255#0#255#255#255#0#24'qG6'#0#128#0#2#255#255#255#0
   +#255#255#255#0#7'OnClick'#7#14'bbAddUserClick'#8'TabOrder'#2#3#0#0#0#9'TTabS'
-  +'heet'#12'tsReferences'#7'Caption'#6#10'References'#12'ClientHeight'#3'~'#1
-  +#11'ClientWidth'#3'-'#3#10'ImageIndex'#2#5#0#11'TStringGrid'#12'sgReferences'
-  +#4'Left'#2#0#6'Height'#3#22#1#3'Top'#2#0#5'Width'#3'-'#3#5'Align'#7#5'alTop'
+  +'heet'#12'tsReferences'#7'Caption'#6#10'References'#12'ClientHeight'#3#130#1
+  +#11'ClientWidth'#3')'#3#10'ImageIndex'#2#5#0#11'TStringGrid'#12'sgReferences'
+  +#4'Left'#2#0#6'Height'#3#26#1#3'Top'#2#0#5'Width'#3')'#3#5'Align'#7#5'alTop'
   +#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#8'ColCount'#2#4#7
   +'Columns'#14#1#13'Title.Caption'#6#15'Constraint name'#5'Width'#3#200#0#0#1
   +#13'Title.Caption'#6#13'Foreign Table'#5'Width'#3#200#0#0#1#11'ButtonStyle'#7
@@ -976,8 +976,8 @@ LazarusResources.Add('TfmTableManage','FORMDATA',[
   +'Width'#3#190#0#0#0#10'FixedColor'#4#207#218#221#0#9'FixedCols'#2#0#7'Option'
   +'s'#11#15'goFixedVertLine'#15'goFixedHorzLine'#10'goVertLine'#10'goHorzLine'
   +#13'goRangeSelect'#11'goColSizing'#11'goRowSelect'#14'goSmoothScroll'#0#8'Ta'
-  +'bOrder'#2#0#0#0#7'TBitBtn'#19'bbRefreshReferences'#4'Left'#3#185#2#6'Height'
-  +#2'+'#3'Top'#3'R'#1#5'Width'#2'c'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'C'
+  +'bOrder'#2#0#0#0#7'TBitBtn'#19'bbRefreshReferences'#4'Left'#3#181#2#6'Height'
+  +#2'+'#3'Top'#3'V'#1#5'Width'#2'c'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'C'
   +'aption'#6#7'Refresh'#5'Color'#4#219#242#247#0#4'Kind'#7#7'bkRetry'#7'OnClic'
   +'k'#7#24'bbRefreshReferencesClick'#8'TabOrder'#2#1#0#0#0#0#7'TBitBtn'#7'bbCl'
   +'ose'#4'Left'#3#23#3#6'Height'#2#24#3'Top'#2#0#5'Width'#2#27#7'Anchors'#11#5

+ 1 - 1
tablemanage.pas

@@ -310,7 +310,7 @@ begin
   fmMain.SQLQuery1.Close;
   fmNewConstraint.edNewName.Text:= 'FK_' + fTableName + '_' + IntToStr(sgConstraints.RowCount);
 
-  // Foriegn tables
+  // Foreign tables
   fmNewConstraint.cbTables.Items.CommaText:= dmSysTables.GetDBObjectNames(fdbIndex, 1, Count);
   fmNewConstraint.DatabaseIndex:= fdbIndex;