Forum Discussion

ritesh_chauhan's avatar
ritesh_chauhan
Contributor
13 years ago

how does a function returns a value when called in another function?

how does a function returns a value when called in another function?

2 Replies

  • script 1:



    Function Func1()

         ' code here

     x = GenerateRandomString(100)

    End Function





    script 2:



    Function GenerateRandomString(intSeed)

       ' code here that will generate Result



       GenerateRandomString = Result

    End Function



    -----------

    x in Func1 will be replaced with the result of GenerateRandomString