Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=b
@vc=c
@vd=d
@end
                                                       

.ӳ YSetValue, , 
. a, 
.ֲ b_negative, ߼
.ֲ temp_a, 
.ֲ b, 
.ֲ c, 
.ֲ d, 
.ֲ result, 

' YSetValue
' ĿģԱֵ
' aҪõֵ
' ؽҪõֵ
' LastError=0ȷLastErrorΪμֲ
LastError  0
b_negative    ' ֲڴǷ
. (a  0)
    a  a
    b_negative    ' ΪaΪȻø
.
' ֲ
' a256ȡ
' ΪCal_2ʽֻֽڱܳ256
temp_a  a  256
' aȥ
' ΪʲôҪaȥأ
' Ϊ׼ڼڲμ㣬aҪȥԼ
a  a  temp_a
' @fļе@pλôмʽ
 ()
b  ȡ (1, 255) 
c  ȡ (1, 255) 
d  ȡ (1, 255) 
result = CalculateEx_3(ȡĿ¼ ()+"\@f.lll",@p, 16, temp_a, b, c, d,KeyPath,2000)
@1
. (result  0)
    LastError  result  ' ô
     (0)
.
' ڼĽصtemp_a
' ٽǰȥaӾͿˡ
. (b_negative)
     ((temp_a  a))  ' aΪֱtemp_aȻȡ
.
 (temp_a  a)  ' Ϊ,ֱtemp_a