When I had this problem before, that is what I did to fix it.  I created 
a new form and copied & pasted method code into the new form.  My 
problem was converting FPW 2.6 forms to VFP9.  It looked like they 
converted, but because of all the methods it really got messed up.  My 
problem was method code from one method in the wrong method.

Creating a new form was the best - not necessarily the easiest - solution.

Jeff

---------------

Jeff Johnson
[email protected]
(623) 582-0323

www.san-dc.com


On 05/02/2012 07:07 AM, Lew Schwartz wrote:
> I don't think there's a quick fix here. If the compiled code is the
> problem, you may make it worse by recompiling. So.... create a new
> form, cut&  paste as much code as possible, and ... back up often.
>
> On Tue, May 1, 2012 at 5:52 PM, Tracy Pearson<[email protected]>  wrote:
>> Michael Savage wrote on 2012-05-01:
>>>   When I try to modify a form...It states that the sct file is not an
>>>   object file. I can open the file as a table, browse to the record, with
>>>   out any errors at all.
>>>
>>>   This all started with my code disappearing from my added methods. Yet if
>>>   I examined the forms methods in the browse, all my methods are there,
>>>   but some code is not there. (I immediately saved the code!)
>>>
>>>   Any ideas on how fix it?
>>>   The last thing I want to do is recreate the form.
>>>
>>>   TIA,
>>>   Mike
>>>
>> Michael,
>>
>> Use some code to test the memos.
>> Using AFIELDS() get a list of all the fields in the table.
>> Scan each row, loop through the array returned by AFIELDS() looking for
>> array[loop, 2] = "M"
>> Try/Catch getting the value from that field.
>> When a problem is caught, determine what to do about it.
>>
>> I'm only speculating that something has happened to some of the compiled
>> code in the SCT.
>>
>> Tracy Pearson
>> PowerChurch Software
>>
>>
[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.

Reply via email to