The following is a translation of my previous reply to Rodrigo:
Rodrigo:
As Ed Rauh correctly says, public variables are a bad idea.
To answer your question, yes you do need a CLEAR EVENTS.
The most normal way of doing this, is that your project should have a common man point of entry in a prg (ie. main.prg). This prg instances the main menu and then issues a READ EVENTS. The menu is now functionaland from there you can open all your forms.
When you end the program, for example with a main menu exit option that issues a CLEAR EVENTS, control returns to main.prg at the point immediately after READ EVENTS.
There you clean up and close.
I also recommend you visit the Spanish newsgroups at microsoft.public.es.vfoxpro where there is a lot of Spanish speaking VFP users. I also want to mention that there will be a chat here in the UT, in Spanish, on Wednesday December 13th at 9:00 pm Buenos Aires time (see:
http://fox.wikis.com/wc.dll?Wiki~IntroducciónAOrientaciónDeObjetosEnVFP)