Jack:  I've been using VFP9 and have had this happen quite a bit.  I traced
it to this:  When running a form in the VFP environment I get an error.  If
I save the form, it will save some of the methods in the wrong place.  Ie:
the init code will be in the click code and the click code will be in the
init.  Initially I would save the form and have to go back and move
everything around.  

What I do now, is when I get an error when running a form, I quit FoxPro and
start it up.  The form will be fine when re-opening FoxPro.

It appears to me that the index of the form gets messed up when there is an
error.  I have never seen this is VFP7 and I have it under control in VFP9.

Jeff

Jeff Johnson
[EMAIL PROTECTED]
623-582-0323
Fax 623-869-0675


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Crozier
Sent: Monday, October 30, 2006 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: VFP8: Missing Code...Again...

Jack,
Whatever it is it certainly won't get fixed in VFP8. I gave that up as a
lost cause a couple of years ago and reverted back to VFP7 which was much
more predictable and stable. Zorder getting changed randomly, objects
suddenly moving behind other objects for no reason even though you use Force
to Front, relationships between files not refreshing in grids as they
should, List boxed not behaving properly...the list goes on etc etc.

At least the shortcomings in VFP7 were fixable with programming workarounds.

Change to VFP9. You know it makes sense. 

Dave Crozier
 The secret to staying young is to live honestly, eat slowly, and to lie
about your age 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Jack Skelley
Sent: 30 October 2006 16:21
To: [email protected]
Subject: VFP8: Missing Code...Again...

Good Morning All:
Well I got burned again with missing code in click events associated with
command buttons.
During Saturday's game the app that was running the user could not select
certain game events because the compiled code from the method code was
missing. In fact, this morning when I checked the .scx there was no code in
methods nor in the objcode.
I did what was recommended by deleting the objcode and then do a complete
compile. And, luckily, before I did this I did a complete backup to my
backup harddrive. BTW, the code was in the backup was there when I checked
it this AM.
There are something like 140 objects on this form that all have click
events. There are is no way I can check the program from top to bottom every
time it is recompiled. Is the form too complex with all the objects?
So my question is when does this code disappear? And how to the rest of you
deal (cope) with this?
I have been writing VFP code for 8 years and FPD code since 1.03 not to
mention FoxBase before that and have never had this situation occur before
now.
Thanks for any help.
Regards,

Jack Skelley


[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
** 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.

Reply via email to