upobDaPlaya
asked on
Passing the MID function as an Argument
I assume a Function such as LEFT can not be passed as an Argument for a Function. Such as
DoSometing(Left([LastName, 20))
Thus when I call a function and pass arguments a Function can not be used as an argement even if the result matches the type of the called procedure such as a string variable.
DoSometing(Left([LastName,
Thus when I call a function and pass arguments a Function can not be used as an argement even if the result matches the type of the called procedure such as a string variable.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If the argument is input argument, then you can still put Left, Mid to it.
DoSometing(Left([LastName,Your example is not passing the Left function to the DoSomething() function. You are passing the result of a Left function invocation.20))
ASKER
Thanks !