Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                                       
.ӳ YCompareString, ߼, 
. s1, ı
. s2, ı
. Exp, ı

.ֲ temp_a, 
.ֲ temp_b, 
.ֲ temp_string_1, ı
.ֲ temp_string_2, ı
.ֲ result, 
.ֲ temp1, 
.ֲ temp_d, 
.ֲ temp_c, 

' YCompareString
' ĿģַбȽ
' s1ҪȽϵַ֮һ
' s2ҪȽϵַ֮һ
' cǴڣСڻڣ">","<","="
' ؽΪ0ַȣΪs1>s2,Ϊ,s1<s2
' LastError=0ȷLastErrorΪμֲ
. (ȡı (s1)  0  ȡı (s2)  0)
    ' ַĳȽַǰ1ǰ2ֲַĸֽڣַtemp_stringַ
temp_a  λ (ȡ (s1, ), 255)
temp_b  λ (ȡ (s1, ), 65280)  256
temp_string_1  ȡıм (s1, 2, ȡı (s1)  1)
temp_c  λ (ȡ (s2, ), 255)
temp_d  λ (ȡ (s2, ), 65280)  256
temp_string_2  ȡıм (s2, 2, ȡı (s2)  1)

.
' ϴַĳȽַǰ1ǰ2ֲַĸֽ
' ⲽa,bĸ͵ڲ,
' @fļе@pλôмʽ
result = CalculateEx_3(ȡĿ¼ ()+"\@f.lll",@p,16, temp_a, temp_b, temp_c, temp_d,KeyPath,2000)
@1
. (result  0)
    LastError  result
.
' ڼĽصtemp_a,temp_b,temp_c,temp_d
'ٽͻصַ
temp1 = temp_b
temp1  temp1  256
s1  ַ (λ (temp_a, temp1))  temp_string_1
temp1  temp_d
temp1  temp1  256
s2  ַ (λ (temp_c, temp1))  temp_string_2
' ȽַǷ
LastError  -3  ' ʾc
. (exp  >)
    LastError  0
     (s1  s2)
.
. (exp  <)
    LastError  0
     (s1  s2)
.
 (exp  =)
LastError  0
 (s1  s2)