Return value from a VBScript function

后端 未结 1 1723
滥情空心
滥情空心 2020-12-03 02:51

I have two functions, and I am trying to use the result of one function in the second one. It\'s going to the else part, but it\'s not printing anything for \"c

1条回答
  •  -上瘾入骨i
    2020-12-03 03:25

    To return a value from a VBScript function, assign the value to the name of the function, like this:

    Function getNumber
        getNumber = "423"
    End Function
    

    0 讨论(0)
提交回复
热议问题