Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vanishing method code
Message
 
To
18/07/2006 15:32:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01137364
Message ID:
01137822
Views:
22
Make backups - check archived backups - look for the lost code/

Sometimes - opening the SCX with a USE command and then PACK, followed by REINDEX may help.

Sometimes - through system errors - or what ever - invisble ascii characters end up in the SCX memos - like the ASCII delete char, etc. If you're brave - and have backups you can write a PRG to crawl though the SCX and remove them.

Or save the form to a PRG - look at it - delete the visual forms - the run the PRG "form" and save it [back] as a visual form.

When it happens again - open the SCX and do a "locate" or "filter" the opened SCX to see if you can find it.

Has your Ad aware, Register Mechanic or Task manager or MSCONFIG got anything to say? I remember a worm going round a few years ago - as I recall one of its pleasures was crawling through SCX's to feed! (Sembre M-sumpin? - Sonia?)

It could be a system problem - a bug - a funky keyboard - bad luck - or an MS virus to force you to submit to their DOT NOT marketing efforts!:-! Are your co-workers experiencing anything. Is it computer specific? Are you copying them from someplace. When was the last time you did a defrag and chkdsk? Or deleted your INDEX.DAT files?

Maybe move your methods to a PRG (PROCEDURE FILE) - give the SCX a little breathing room) and simply call the procedures (methods) from your SCX).

In my projects - I never write the methods inside the form. I, instead point to a procedure :RunMyFormMyField_LostFocus(thisform, this)

Great for fast re-use on new projects - and I can see and touch them!!!:-)

Visual objects are sensitive - as much as you can - move your methods to a PRG (procedure file).

>This has happened to me about 3 times in the past year. I know I'm not crazy!
>
>I'm working on a form with lots of method code. I make a change, save my changes and the next time I run the form some of my method code is gone. It's not even the method I was working on!
>
>Today all of the code on my page frames (Activate, Deactivate and Refresh) was wiped out. All of the other code is fine!
>
>Once a few months ago, the code actually swapped. So Page1.Activate and Page1.Refresh were swapped, etc.
>
>This has happened with different forms, different projects.
>
>Anyone else seen this?
>
>thanks
>
>bonnie
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform