参数不是可选的(开放式办公基本宏)

时间:2016-04-20 12:12:36

标签: basic

你可以帮我解决这个功能中的错误吗?

Function TrueSolarTime(eqtime As Double, longitude As Double, _
        timeZone As Double, hours As Double, minutes As Double) As Double

    dim time_offset as double
    dim x as double

    time_offset = eqtime - (4 * longitude) + (60 * timeZone)

    TrueSolarTime = hours * 60 + minutes + time_offset


End Function

0 个答案:

没有答案