【问题标题】:Why is Visio VBA Exponentiation not working? [duplicate]为什么 Visio VBA 求幂不起作用? [复制]
【发布时间】:2020-09-26 00:39:47
【问题描述】:

今天,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

【问题讨论】:

标签: vba visio exponentiation


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-08-02
    • 2016-01-24
    • 2013-03-05
    • 2012-10-01
    • 2014-07-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多