Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // check if record has a keyword
- function HasKeyword(r: IInterface; aKeyword: string): boolean;
- var
- keywords: IInterface;
- i: integer;
- begin
- keywords := ElementBySignature(r, 'KWDA');
- for i := 0 to Pred(ElementCount(keywords)) do
- if EditorID(LinksTo(ElementByIndex(keywords, i))) = aKeyword then begin
- Result := True;
- Exit;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement