philjoyal
Messages postés14Date d'inscriptionvendredi 21 décembre 2007StatutMembreDernière intervention25 décembre 2007 22 déc. 2007 à 20:18
voici mon code au complet:
Private Sub cmdcalcci_Click()
'Load method error window
If btnci976.Value = False _
And btnci4737a.Value = False _
And btnci4737b.Value = False Then
MsgBox "Select an ASTM Method"
End If
'declare variable
Dim dn As Double
Dim t10n As Double
Dim t50n As Double
Dim t90n As Double
Dim b As Double
'calculate cetane index D4737 A
If btnci4737a.Value = True Then
dn = Val(txtciden.Text) - 0.85
b = 2.71828 ^ ((-3.5) * Val(dn)) - 1
t10n = Val(txtcit10.Text) - 215
t50n = Val(txtcit50.Text) - 260
t90n = Val(txtcit90.Text) - 310