home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / pibterm / pibt41s1.arc / CMPSTR.MOD < prev    next >
Text File  |  1987-12-02  |  255b  |  12 lines

  1. FUNCTION CompareStr( VAR S1, S2 : AnyStr ) : Comparer;
  2.  
  3. BEGIN (* CompareStr *)
  4.  
  5.    IF ( S1 = S2 ) THEN
  6.       CompareStr := Equal
  7.    ELSE IF ( S1 < S2 ) THEN
  8.       CompareStr := Less
  9.    ELSE
  10.       CompareStr := Greater;
  11.  
  12. END   (* CompareStr *);