The read events is in the app class method runapp(). I have moved the code but I get the same message "oApp not found". for some reason it appears the the form object and some upper variables are still active and I do not know why.
Extreme Programming = Plan -> Design -> Code -> Test