Advertisement
Guest User

Untitled

a guest
May 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. type
  2. Tsuntrip = class
  3. private
  4. Pid:string;
  5. public
  6. constructor Create;
  7. function AnstallningsNr(Pid:string):boolean;
  8. end;
  9.  
  10. implementation
  11.  
  12. constructor Tsuntrip.Create;
  13. begin
  14. inherited Create;
  15. // TODO: Add any constructor code here
  16. end;
  17.  
  18. function Tsuntrip.AnstallningsNr(Pid:string):boolean;
  19. begin
  20.  
  21. if (Pid[1] = 'P') and (Pid.length = 3) then
  22. result:=true
  23. else
  24. result:=false;
  25.  
  26. end;
  27.  
  28. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement