Private Sub txtproprice_KeyPress(Index As Integer, KeyAscii As Integer)
txtmoney(1).Text = Trim(txtproductmount(1).Text) * Trim(txtproprice(1).Text)'金额文本框的值为数量与价格的积
Call FocusNext(KeyAscii) '调用焦点移动函数
End Sub已经在数量的文本框输入数值,在单价文本框一输入内容就提示出错,
txtmoney(1).Text = Trim(txtproductmount(1).Text) * Trim(txtproprice(1).Text)'金额文本框的值为数量与价格的积
Call FocusNext(KeyAscii) '调用焦点移动函数
End Sub已经在数量的文本框输入数值,在单价文本框一输入内容就提示出错,
字符串怎么进行乘法运算
Private Sub txtproprice_KeyPress(Index As Integer, KeyAscii As Integer)if keyascii = 13 then
txtmoney(1).Text = Trim(txtproductmount(1).Text) * Trim(txtproprice(1).Text)'金 额文本框的值为数量与价格的积
Call FocusNext(KeyAscii) '调用焦点移动函数
end ifEnd Sub