为什么Visio VBA指数不起作用?

问题描述

如今,Visio VBA的行为有所不同。 debug.print 2 ^ 2打印“ 2 2”,debug.print 5.5 ^ 2给出错误消息“编译错误:期望的表达式”,而debug.print(5.5)^ 2给出30.25。

我不记得在过去的15年的VBA编程中见过这种情况,我预计会得到4和30.25

解决方法

使用2 ^ 2。空间很重要。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...