mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:29:32 +02:00
* fcl-db: backlinks: allow clearing backlinks in any tablelevel
git-svn-id: trunk@28021 -
This commit is contained in:
parent
115a64d62c
commit
4515ff7b77
@ -2216,7 +2216,9 @@ end;
|
||||
procedure TDbf.SetBackLink(NewBackLink: String);
|
||||
begin
|
||||
// Only supported in Visual Foxpro but allow auto-upgrade from Foxpro
|
||||
if not(Tablelevel in [TDBF_TABLELEVEL_FOXPRO,TDBF_TABLELEVEL_VISUALFOXPRO]) then
|
||||
// as well as resetting existing backlinks in any tablelevel
|
||||
if (NewBackLink<>'') and
|
||||
(not(Tablelevel in [TDBF_TABLELEVEL_FOXPRO,TDBF_TABLELEVEL_VISUALFOXPRO])) then
|
||||
raise EDbfError.CreateFmt(STRING_FEATURE_NOT_SUPPORTED_THIS_TABLELEVEL,
|
||||
[Tablelevel]);
|
||||
CheckInactive;
|
||||
|
Loading…
Reference in New Issue
Block a user