Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=b
@vc=c
@vd=d
@end
                                        
'YSetValue
'ĿģԱֵ
'aҪõֵ
'ؽҪõֵ
'LastError=0ȷLastErrorΪμֲ
 Public Function YSetValue(ByVal a As Long) As Long
    LastError = 0
   Dim b_negative As Boolean: b_negative = False 'ֲڴǷ
    If (a < 0) Then a = -a: b_negative = True 'ΪaΪȻø
    'ֲ
    Dim temp_a As Integer
    'a256ȡ
    'ΪCalculateEx_3ʽֻֽڱܳ256
    temp_a = a - (a \ 256) * 256
    'aȥ
    'ΪʲôҪaȥأ
    'Ϊ׼ڼڲμ㣬aҪȥԼ
    a = a - temp_a
    Dim result  As Integer 'ֲ,ؽ
    Dim b As Integer
    Dim c As Integer
    Dim d As Integer
    '@fļе@pλôмʽ
	b = Int(Rnd * 256): c = Int(Rnd * 256): d = Int(Rnd * 256)
    result = CalculateEx_3("@f.lll",@p, 16, temp_a, b, c, d,KeyPath,2000)

    @1
    If (result <> 0) Then 
	LastError = result 'ô
	YSetValue=0
	exit function
    end if
    'ڼĽصtemp_a
    'ٽǰȥaӾͿˡ
    If (b_negative) Then YSetValue = -(temp_a + a): Exit Function 'aΪֱtemp_aȻȡ
    YSetValue = temp_a + a 'Ϊ,ֱtemp_a
 End Function