Before some long research in my code and a lot of splitting, I've found the problem, I've created a 'clearFields' procedure to clear some tfield on the form, but when I typed the 'ClearFields' (capital C) using the CTRL+Spacebar in the application I've switched to a SQL function that clear the fields, so like someone said my end was in the wrong place, because the SQL function works in a different way, after noting that and switch the procedure name to clearFormFields everything is working right.
Thanks the replys and the patience, sorry my english.