|
@@ -43,7 +43,7 @@ type
|
|
OldAllowNull: Boolean;
|
|
OldAllowNull: Boolean;
|
|
OldOrder: Integer;
|
|
OldOrder: Integer;
|
|
OldDefault: string;
|
|
OldDefault: string;
|
|
- OldDesciption: string;
|
|
|
|
|
|
+ OldDescription: string;
|
|
procedure Init(dbIndex: Integer; TableName: string; FormMode: TFormMode;
|
|
procedure Init(dbIndex: Integer; TableName: string; FormMode: TFormMode;
|
|
FieldName, FieldType, DefaultValue, Description: string; FSize, FOrder: Integer; AllowNull: Boolean; RefreshButton: TBitBtn);
|
|
FieldName, FieldType, DefaultValue, Description: string; FSize, FOrder: Integer; AllowNull: Boolean; RefreshButton: TBitBtn);
|
|
|
|
|
|
@@ -130,7 +130,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
// Description
|
|
// Description
|
|
- if edDescription.Text <> OldDesciption then
|
|
|
|
|
|
+ if edDescription.Text <> OldDescription then
|
|
begin
|
|
begin
|
|
Line:= Line + 'UPDATE RDB$RELATION_FIELDS set RDB$DESCRIPTION = ''' + edDescription.Text +
|
|
Line:= Line + 'UPDATE RDB$RELATION_FIELDS set RDB$DESCRIPTION = ''' + edDescription.Text +
|
|
''' where RDB$FIELD_NAME = ''' + UpperCase(Trim(edFieldName.Text)) +
|
|
''' where RDB$FIELD_NAME = ''' + UpperCase(Trim(edFieldName.Text)) +
|
|
@@ -184,7 +184,7 @@ begin
|
|
OldAllowNull:= AllowNull;
|
|
OldAllowNull:= AllowNull;
|
|
OldOrder:= FOrder;
|
|
OldOrder:= FOrder;
|
|
OldDefault:= DefaultValue;
|
|
OldDefault:= DefaultValue;
|
|
- OldDesciption:= Description;
|
|
|
|
|
|
+ OldDescription:= Description;
|
|
|
|
|
|
edFieldName.Text:= OldFieldName;
|
|
edFieldName.Text:= OldFieldName;
|
|
seSize.Value:= OldFieldSize;
|
|
seSize.Value:= OldFieldSize;
|
|
@@ -192,7 +192,7 @@ begin
|
|
cxAllowNull.Checked:= OldAllowNull;
|
|
cxAllowNull.Checked:= OldAllowNull;
|
|
seOrder.Value:= OldOrder;
|
|
seOrder.Value:= OldOrder;
|
|
edDefault.Text:= OldDefault;
|
|
edDefault.Text:= OldDefault;
|
|
- edDescription.Text:= OldDesciption;
|
|
|
|
|
|
+ edDescription.Text:= OldDescription;
|
|
if FormMode = foEdit then
|
|
if FormMode = foEdit then
|
|
begin
|
|
begin
|
|
bbAdd.Caption:= 'Update';
|
|
bbAdd.Caption:= 'Update';
|
|
@@ -203,7 +203,6 @@ begin
|
|
bbAdd.Caption:= 'Add';
|
|
bbAdd.Caption:= 'Add';
|
|
Caption:= 'Add new in : ' + TableName;
|
|
Caption:= 'Add new in : ' + TableName;
|
|
end;
|
|
end;
|
|
-
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
initialization
|
|
initialization
|