Never happened to me, but you can create in a prg subroutines and call them from the button to execute your code.
HTH, E. > >Good Morning All: >I have a recurring issue in VFP9 SP2 that is starting to make me very unhappy. >It seems when I recompile an application in to an exe I have random code >blocks in either defined methods or events on an object get erased. The >results is when a user clicks on (for example) the 'Cancel' button nothing >happens because the event code has been erased (I am assuming) during the >compile or perhaps when the form is saved the code is not saved with the >object. >This application was developed in VFP8 where this phantom behavior first >surfaced. I converted the application to VFP9 and it still recurring randomly. >I have written several other applications in VFP9 from the beginning and have >not seen this behavior. >My next large project is to convert an application that was written in VFP6 >SP5 that has nearly 200 forms with many methods and many objects. Every time I >recompile I will be thinking about these random blocks of code that will be >missing. >Anyone else experience this and how can it be solved? >Thanks for any insight. >Best regards, > >Jack Skelley > >Jack Skelley >Senior Director, Programming/Computer Operations >New Jersey Devils >(973)757-6164 >[email protected] > >_______________________________________________ >Post Messages to: [email protected] >Subscription Maintenance: http://leafe.com/mailman/listinfo/profox >OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech >Searchable Archive: http://leafe.com/archives/search/profox >This message: >http://leafe.com/archives/byMID/profox/7d9e7f72b813014c8fd022cf04f820ed139...@ex08.drdad.thenewarkarena.com >** All postings, unless explicitly stated otherwise, are the opinions of the >author, and do not constitute legal or medical advice. This statement is added >to the messages for those lawyers who are too stupid to see the obvious. > > > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

