Exp=f
@p1=
@c1=
@p2=
@c2=
@va=a
@vb=b
@vc=c
@vd=d
@end
                                                       
':Ycompare
'ĿģȽĴС൱?a>b,a<b,a=b
'p1ҪȽϵĵһ
'p2ҪȽϵĵڶ
'expǴڣСڻڣ">","<","="
'ؽ
'0ʾʽΪ٣1ʾʽΪ
'LastError=0ȷLastErrorΪμֲ
Public Function Ycompare(ByVal p1 As Integer,ByVal  p2 As Integer, 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, InArray, OutArray, KeyPath)
    If  LastError<> 0 Then  Exit Function
	'/////////////////////////////////////////////////////////////////////////////////////////////////////

    Dim result As Integer
    Dim a As Integer
    Dim b As Integer
    Dim c As Integer
    Dim d As Integer 'ֲ
    'p1ֲĸֽڡ
    a = p1 And 255: b = (p1 >> 8) And 255: c = (p1 >> 16) And 255: d = (p1 >> 24) And 255
    'ⲽa,b,dĵڲ,
    '@fļе@pλôмʽ
   result = CalculateEx_2(OutArray, a, b, c, d,KeyPath,16,2000)
   @1
    If result <> 0 Then
        LastError = result
    End If
    Dim temp_a As Integer
    Dim temp_b As Integer
    Dim temp_c As Integer
    Dim temp_d As Integer 'ֲ
    'ĸֽٺϲһ
    temp_a=a:temp_b=b:temp_c=c:temp_d=d
    p1 = (temp_a) Or (temp_b << 8) Or (temp_c << 16) Or (temp_d << 24)
    LastError = -3 'ʾc
    If (exp = ">") Then Ycompare = (p1 > p2): LastError = 0
    If (exp = "<") Then Ycompare = (p1 < p2): LastError = 0
    If (exp = "=") Then Ycompare = (p1 = p2): LastError = 0
End Function