Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // check if record has a keyword
  2. function HasKeyword(r: IInterface; aKeyword: string): boolean;
  3. var
  4. keywords: IInterface;
  5. i: integer;
  6. begin
  7. keywords := ElementBySignature(r, 'KWDA');
  8. for i := 0 to Pred(ElementCount(keywords)) do
  9. if EditorID(LinksTo(ElementByIndex(keywords, i))) = aKeyword then begin
  10. Result := True;
  11. Exit;
  12. end;
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement