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 Long, ByVal p2 As Long,ByVal  exp As String) As Boolean
    Dim result As Integer
    Dim a As Integer
    Dim b As Integer
    Dim c As Integer
    Dim d As Integer 'ֲ
    'p1ֲĸֽڡ
    a = p1 Mod 256: b = (p1 \ 256) Mod 256: c = (p1 \ 65536) Mod 256: d = (p1 \ 16777216) Mod 256
    'ⲽa,b,dĵڲ,
    '@fļе@pλôмʽ
   result = CalculateEx_3("@f.lll",@p, 16, a, b, c, d,KeyPath,2000)
   @1
    If result <> 0 Then
        LastError = result
    End If
    Dim temp_a As Long
    Dim temp_b As Long
    Dim temp_c As Long
    Dim temp_d As Long 'ֲ
    'ĸֽٺϲһ
    temp_a=a:temp_b=b:temp_c=c:temp_d=d
    p1 = (temp_a) Or (temp_b * 256) Or (temp_c * 65536) Or (temp_d * 16777216)
    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