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, 
.ֲ InArray, ֽ, , "16"
.ֲ OutArray, ֽ, , "16"


' YCompareString
' ĿģַбȽ
' s1ҪȽϵַ֮һ
' s2ҪȽϵַ֮һ
' cǴڣСڻڣ">","<","="
' ؽΪ0ַȣΪs1>s2,Ϊ,s1<s2
' LastError=0ȷLastErrorΪμֲ

' //칤ɵļܺļܱʽ
' //бܵıʽΪ@exp
InArray  { @ak100,@ak101, @ak102, @ak103, @ak104, @ak105, @ak106, @ak107, @ak108, @ak109, @ak110, @ak111, @ak112, @ak113, @ak114, @ak115}
' //ܺıʽ͵ннܲ¼ܣʹӦȨţעת
' //Ȼ󷵻ؼܺݣüܺüӦ
' //ֻбӦȨŽתݲܱӦļܲ
LastError  E_Dec_6 (E_HKey, E_LKey, InArray, OutArray, KeyPath)
. (LastError  0)
     ()
.

. (ȡı (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_2 (OutArray, temp_a, temp_b, temp_c, temp_d,KeyPath, 16, 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)