Link to home
Start Free TrialLog in
Avatar of upobDaPlaya
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.
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the argument is input argument, then you can still put Left, Mid to it.
DoSometing(Left([LastName,20))
Your example is not passing the Left function to the DoSomething() function. You are passing the result of a Left function invocation.
Avatar of upobDaPlaya
upobDaPlaya

ASKER

Thanks !