Trim function error with undefined

Hi George, finnaly

I finally found the point where my app has problems.
If you call the function TRIM with the variable undefined, it displays the error.
I know it’s up to the programmer here to prevent undefined from happening, but it does … I don’t even know where I’m going undefined …
Would it be possible to prevent this problem in basicfuncions and return empty?

Function testeundefined(teste1)
  teste2 = Trim(teste1)
End Function

Function iniciaAplicativo()
End function

I’ll put it on the list.

1 Like