I am having a brain fart.
Is it possible to pass a variable to a function?
For example, I would like to create a function where I can pass a number, or variable from a DB that will be divided by 10. The Function would be accessed by:
@DivideByTen(100)
This Function would then return 10.
It seems to me that I would have to create a seperate function for each field in a database that I would want to run in this function by placing it in a shared variable. I would prefer a more direct approach.
Thanks In Advance
Is it possible to pass a variable to a function?
For example, I would like to create a function where I can pass a number, or variable from a DB that will be divided by 10. The Function would be accessed by:
@DivideByTen(100)
This Function would then return 10.
It seems to me that I would have to create a seperate function for each field in a database that I would want to run in this function by placing it in a shared variable. I would prefer a more direct approach.
Thanks In Advance