spiderman0009
Technical User
Hello
I am not sure I understand how this part in " " means below...
Creating functions
A function, as you may expect, works like a VBScript function - it returns a value, and when it is called it can be included as part of a formula.
Function CalculateCost(FoodCost, HotelCost, HourlyRate)
Dim TotalCost
...
CalculateCost = TotalCost
End Function
Just like a subroutine, the Function identifies the name of the function and the arguments. End Function comes at the end. The name of the function should be assigned a value sometime before the End Function. This value assigned to the name of the functions is the value that is sent back to the calling routine. "In the preceding code, a variable, TotalCost, is used in all the calculations and then it is assigned to CalculateCost, the name of the function just before the function ends."
Is there a simpler way to put this ... so that a sesame street person would be able to understand?
Can you help>>>???
I am not sure I understand how this part in " " means below...
Creating functions
A function, as you may expect, works like a VBScript function - it returns a value, and when it is called it can be included as part of a formula.
Function CalculateCost(FoodCost, HotelCost, HourlyRate)
Dim TotalCost
...
CalculateCost = TotalCost
End Function
Just like a subroutine, the Function identifies the name of the function and the arguments. End Function comes at the end. The name of the function should be assigned a value sometime before the End Function. This value assigned to the name of the functions is the value that is sent back to the calling routine. "In the preceding code, a variable, TotalCost, is used in all the calculations and then it is assigned to CalculateCost, the name of the function just before the function ends."
Is there a simpler way to put this ... so that a sesame street person would be able to understand?
Can you help>>>???