Why use a dollar sign in Mid function
-
-
-
Re: Why use a dollar sign in Mid function
They are just aliases for the same function. I believe that Mid$ is for backwards compatibility with older code.
-
Re: Why use a dollar sign in Mid function
Thanks
After searching information i found out that $ might also mean it returns string directly (instead of variant), which means faster code processing. -
Re: Why use a dollar sign in Mid function
I did a little further checking and there is a slight difference according to this post:http://bytes.com/topic/access/…er-use-if-these-functions
QuoteThe difference between the functions with the $ and those without is how
they handle Nulls. The ones with the $ are text only and will give you an
error if you pass them a Null.
If there is any performance difference then it will be negligible.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!