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
		 '//칤ɵļܺļܱʽ
    '//бܵıʽΪ@exp
	Dim OutArray(16) As Byte
    Dim InArray(16) As Byte
	InArray(0) = @ak100: InArray(1) = @ak101: InArray(2) = @ak102: InArray(3) = @ak103
	InArray(4) = @ak104: InArray(5) = @ak105: InArray(6) = @ak106: InArray(7) = @ak107
	InArray(8) = @ak108: InArray(9) = @ak109: InArray(10) = @ak110: InArray(11) = @ak111
	InArray(12) = @ak112: InArray(13) = @ak113: InArray(14) = @ak114: InArray(15) = @ak115
    '//ܺıʽ͵ннܲ¼ܣʹӦȨţעת
    '//Ȼ󷵻ؼܺݣüܺüӦ
    '//ֻбӦȨŽתݲܱӦļܲ
	LastError=E_Dec_6(E_Hkey, E_Lkey, VarPtr(InArray(0)), VarPtr(OutArray(0)), KeyPath)
    If  LastError<> 0 Then  Exit Function
	'/////////////////////////////////////////////////////////////////////////////////////////////////////
  'ֲ
    'ֲ
    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_2(VarPtr(OutArray(0)), temp_a, temp_b, temp_c, temp_d,KeyPath,16,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