vb 6.0 编译错误 必选参数
PrivateSubCaculateAirVol(ByValtheAirPressureAsSingle,ByValtheAirTempAsSingle,ByRefthe...
Private Sub CaculateAirVol(ByVal theAirPressure As Single, ByVal theAirTemp As Single, ByRef theAirVolume As Double)
Dim thermaltemp As Single
thermaltemp = theAirTemp + 273.5
theAirVolume = 287.1 * thermatemp / theAirPressure
End Sub
Private Sub Command1_Click()
theAirTemp = Val(Text1.Text)
theAirPressure = Val(Text2.Text)
Call CaculateAirVol(theAirTemp, theAirPressure)
Text3.Text = theAirVolume
End Sub
问题补充:Call CaculateAirVol(theAirTemp, theAirPressure)
在本句提示 错误 必选参数,,高手指点一下。。谢了。。。 展开
Dim thermaltemp As Single
thermaltemp = theAirTemp + 273.5
theAirVolume = 287.1 * thermatemp / theAirPressure
End Sub
Private Sub Command1_Click()
theAirTemp = Val(Text1.Text)
theAirPressure = Val(Text2.Text)
Call CaculateAirVol(theAirTemp, theAirPressure)
Text3.Text = theAirVolume
End Sub
问题补充:Call CaculateAirVol(theAirTemp, theAirPressure)
在本句提示 错误 必选参数,,高手指点一下。。谢了。。。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询