Private Sub Command1_Click()Dim shuzi As Longshuzi = 200 * 500End Sub
[解决办法]
VB code
Private Sub Command1_Click() Dim shuzi As Long Dim a As Long a = 200 shuzi = a * 500End Sub [解决办法] VAR = V1*V2*v3*Vn....,计算V1*V2时,结果保存在V1所用的存储器里,改为shuzi = CLng(200) * 500 即可解决问题。