Jack... Only run one time.... it seems to reset the form so that the problem never occurs.... don't ask me why ....but....
Dave -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jack Skelley Sent: 26 March 2012 15:14 To: [email protected] Subject: RE: VFP9: Method Code Disappearing... Good Afternoon Dave: Thanks for the speedy reply. I am both alarmed and pleased that this happened to someone else! Alarmed because there must be a bug in either the saving of the form's method code or the compilation process and pleased that it is not some behavior that I am doing and that it happened elsewhere <g>!!! I am assuming that you wrote a program to open all the .scx tables and replaced the 'objcode' fields with a null where any 'methods' code is present. Do you run this code to clear the objcode before each compile or did you run it only one time? >From what you said I am under the impression that any program that originated >in VFP9 does not exhibit this behavior and only apps that were converted to >VFP9 can behave (randomly) this way. Thanks again! Best regards, Jack Jack Skelley Senior Director, Programming/Computer Operations New Jersey Devils (973)757-6164 [email protected] ________________________________________ From: [email protected] [[email protected]] on behalf of Dave Crozier [[email protected]] Sent: Monday, March 26, 2012 9:58 AM To: [email protected] Subject: RE: VFP9: Method Code Disappearing... Jack, I had similar problems and the only way I found to cure it was to manually clear out the object code from the SCX before recompiling it in VFP9. For some reason just compiling the form in VFP9 never removed the possibility of the code disappearing and I just bit the bullet, & wrote a program to clear out the compiled code. Once this is done, VFP has never removed code from any of the upgraded programs. One of those cases of "don't know why ... but this solves it". Dave -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jack Skelley Sent: 26 March 2012 14:53 To: [email protected] Subject: VFP9: Method Code Disappearing... 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] [excessive quoting removed by server] _______________________________________________ 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.

