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
More Related Contents:
- MsgBox “” vs MsgBox() in VBScript
- Table name as a PostgreSQL function parameter
- How can I return two values from a function in Python?
- Return value in a Bash function
- Returning Chrome storage API value without function
- Define table and column names as arguments in a plpgsql function?
- What is the difference between a “function” and a “procedure”?
- How to return a string value from a Bash function
- Is there a way to use two ‘…’ statements in a function in R?
- What decides if a value is returned from a PowerShell function?
- How to alias a function name in Fortran
- Parenthesis Powershell functions
- How to profile methods in Scala?
- How to deal with name/value pairs of function arguments in MATLAB
- “Identifier Expected” or “Invalid Prototype” when implementing a scripted constant in Inno Setup
- Exporting a function in shell
- D3 Key Function
- Two ways of defining functions in Scala. What is the difference?
- Kotlin: How can I create a “static” inheritable function?
- Haskell operator vs function precedence
- Scala Functional Literals with Implicits
- Does dart support operator overloading
- Returning tuple with a single item from a function
- Return multiple values from a function in swift
- Why can’t ‘kotlin.Result’ be used as a return type?
- Is it ok to skip “return None”?
- How to evaluate functions in GDB?
- Matlab ode45. How to change a parameter inside it while calling it?
- How do you strip the unit from any number in SASS?
- In R, what exactly is the problem with having variables with the same name as base R functions?