如何调用在另一个 bas 文件中声明的函数?例如,我有 2 个 bas 文件。
sum.bas
Declare Function sum( As Integer, As Integer ) As Integer
Function sum( a As Integer, b As Integer ) As Integer
Return a + b
End Function
主程序
Dim a As Integer
a = sum(1, 2)
Print a
Sleep
我将 main.bas 设置为主模块,但我不能调用 sum 函数....