dbase/school/string_comparison.prg · 332 字节 · 下载原文
IF s1 == s2
? "The strings are equal"
ENDIF
IF .NOT. (s1 == s2)
? "The strings are not equal"
ENDIF
IF s1 > s2
? "s2 is lexically ordered before than s1"
ENDIF
IF s1 < s2
? "s2 is lexically ordered after than s1"
ENDIF
IF Upper(s1) == Upper(s2)
? "The strings are equal"
ENDIF