Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                                       
'YCompareString
'ĿģַбȽ
's1ҪȽϵַ֮һ
's2ҪȽϵַ֮һ
'cǴڣСڻڣ">","<","="
'ؽΪ0ַȣΪs1>s2,Ϊ,s1<s2
'LastError=0ȷLastErrorΪμֲ
Public Function YCompareString(ByVal s1 As String, ByVal s2 As String,ByVal  exp As String) As Boolean
    LastError = 0
    'ֲ
    'ֲ
    Dim temp_string_1 As String
    Dim temp_string_2 As String
    Dim temp_a As Integer
    Dim temp_b As Integer
    Dim temp_c As Integer
    Dim temp_d As Integer
    Dim p1 As Integer
    Dim p2 As Integer
   if len(s1)>0 and len(s2)>0 then
     'ַĳȽַǰ1ǰ2ֲַĸֽڣַtemp_stringַ
       temp_a = asc(s1) and 255 : temp_b=(Asc(s1) And 65280) / 256 : temp_string_1=Mid(s1,2)
       temp_c = asc(s2) and 255 : temp_d=(Asc(s2) And 65280) / 256 : temp_string_2=Mid(s2,2)
    'ϴַĳȽַǰ1ǰ2ֲַĸֽ
    Dim result As Integer 'ֲ,ؽ
    'ⲽa,bĸ͵ڲ,
    '@fļе@pλôмʽ
    result = CalculateEx_3("@f.lll",@p,16, temp_a, temp_b, temp_c, temp_d,KeyPath,2000)	
    @1
    If result <> 0 Then
        LastError = result
        Exit Function 'ô
    End If
    'ڼĽصtemp_a,temp_b,temp_c,temp_d
    'ٽͻصַ
        Dim temp1 As Long
    temp1 = temp_b
    temp1 = temp1 * 256
    s1 = Chr(temp_a Or temp1) + temp_string_1
    temp1 = temp_d
    temp1 = temp1 * 256
    s2 = chr(temp_c or temp1) + temp_string_2
end if
    'ȽַǷ
     LastError = -3 'ʾc
    If (exp = ">") Then YCompareString = (s1 > s2): LastError = 0
    If (exp = "<") Then YCompareString = (s1 < s2): LastError = 0
    If (exp = "=") Then YCompareString = (s1 = s2): LastError = 0
End Function