在VBA中添加数字时是否有最大长度?例如在MS Access中:
Dim L As Long
' this works
L = 2696 + 2630 + 2860 + 2860 + 2860 + 2860 + 2795 + 2795 + 2630 + 2630 + 2630 + 263
' this gives an Overflow error
L = 2696 + 2630 + 2860 + 2860 + 2860 + 2860 + 2795 + 2795 + 2630 + 2630 + 2630 + 2630
Debug.Print L
Run Code Online (Sandbox Code Playgroud)
我从来没有见过这个记录.此外,它不会在Visual Studio中的C#中引发溢出错误.