Exp=f
@p1=
@c1=
@p2=
@c2=
@va=a
@vb=b
@vc=c
@vd=d
@end
                                                       
'DSetValue
'ĿģԸֵ
'aҪõֵ
'ؽҪõֵ
'LastError=0ȷLastErrorΪμֲ
 Public Function DSetValue(ByVal indata As Double) As Double
 	 '//칤ɵļܺļܱʽ
    '//бܵıʽΪ@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 temp_double(8) As Byte
    'ֽΪֽ
    CopyMemory temp_double(0), indata, 8
    Dim result  As Integer 'ֲ,ؽ
   'ֲ
    Dim a As Integer
    Dim b As Integer
    Dim c As Integer
    Dim d As Integer
    a = temp_double(4): b = temp_double(5): c = temp_double(6): d = temp_double(7)
    result = CalculateEx_2(OutArray,  a, b, c, d,KeyPath,16,2000)	
    @1
      If (result <> 0) Then
        LastError = result 'ô
        DSetValue = 0.1
        Exit Function
    End If
	temp_double(4) = a: temp_double(5) = b: temp_double(6) = c: temp_double(7) = d
	Dim oudata As Double
	'ٽϲΪһ
	CopyMemory oudata, temp_double(0), 8
	DSetValue = oudata 'Ϊ,ֱtemp_a
 End Function