在自定义代码部分,如果我首先定义了函数1,在下一行中,我可以定义调用函数1的函数2吗?如果没有,我该如何解决它?
答案 0 :(得分:0)
是的,你可以。人为简单的例子:
Function SumSum(a as decimal, b as decimal) as decimal
Dim c as Decimal
c = a + b
Return c
End Function
Function OtherFunction(a as decimal, b as decimal) as decimal
Dim c as Decimal
c = SumSum(a,b)
Return c
End Function
OtherFunction将使用SumSum函数对a和b进行求和。