TParadoxDataset: Show InputEncoding in Object Inspector only when dataset is active.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2019-05-10 23:07:59 +00:00
parent 36c17ca7ed
commit 9675c3955d

View File

@ -552,6 +552,7 @@ end;
procedure TParadoxDataset.InternalClose;
begin
FInputEncoding := '';
BindFields(FALSE);
if DefaultFields then // Destroy the TField
DestroyFields;
@ -678,7 +679,7 @@ begin
else begin
FFieldInfoPtr := @FHeader^.FieldInfo;
cp := FHeader^.DosCodePage;
FInputEncoding := 'cp' + IntToStr(cp);
FInputEncoding := 'CP' + IntToStr(cp);
end;
if Encrypted then