I wrote a function called isbarren() that takes a variable and checks isnull, isempty, = "", and = 0 and returns TRUE or FALSE.
I've used it happily until yesterday when I noticed that when I pass a string value of "2000D-473" it returned TRUE.
Upon examination, I discovered that ' ? "2000D-473" = 0 will return true...
Anybody know why? I guess there is some implicit conversion going on and the computer looks at the dash as a negative sign, but "2000D-309" = 0 returns FALSE.
I've used it happily until yesterday when I noticed that when I pass a string value of "2000D-473" it returned TRUE.
Upon examination, I discovered that ' ? "2000D-473" = 0 will return true...
Anybody know why? I guess there is some implicit conversion going on and the computer looks at the dash as a negative sign, but "2000D-309" = 0 returns FALSE.