手掌心
可以像这样,返回变量的值。Visual Basic codePublic Function number() As Single '你在这已经设置了函数返回值的类型Dim nJTTZ As Single = 1return nJTTZ '返回变量的值End FunctionPublic Function Index() As SingleDim zJTTZ As Single = 1return zJTTZEnd FunctionPublic Overloads Function CalcAmount() As BooleanAddItemRow("", "第一部分:静态投资", "正线公里", number(), Index()) ‘调用函数即得到返回的变量值。End Function