Bob_Hansen
Senior Member Members
    Offline
 WOW, They have the Internet on computers now!
Posts: 1861
Location: Salem, NH
Joined: Nov 24 th, 2002
|
Improper sequence of field execution
Feb 20th, 2004 at 12:44am
|
Print Post
|
I have a simple application that was basically working, and now is essentially non-functional. Need recovery assistance and autopsy analysis.
History: I added three more new fields to the database, and then added three Read Only elements at the end of the single form for that database.
I added a box with a colored border by using backfill. I decided to reposition some fields for a more logical flow. Doing Layout Design Saves, and Reconciling with Application to test LU statements.
After repositioning fields, I did an align across the top to make sure all fields were in proper sequence.
I ran the program, and suddenly calculations that were OK before, were not correct. Some fields wre being blanked out. Appeared to be a result of going to fields in wrong sequence.
After spending time unsuccessfully looking for obvious errors, I dedided to force the control of the flow over any alignment issues, I went into each field and added a GOTO statement on the Element Exit action. That did not fix it. I removed the box element, could see no relationship, but who knows....no change with that either.
After some more unsuccessful analysis, I decided it was best to trace the actions, so I then added the following statement to every element's Element Exit event: WriteLn ("Starting on Element Exit routines for: "+ @CurrentElement()). This appeared to be a good move, Was able to see flow of execution.
Sure enough, program execution was skipping some fileds, going to wrong fields, and results were unexpected. These executions were totally non-compliant with the GOTO statements.
After reviewing specs on the elements, looking for Read Onlys, etc. chasing for a while (too long) I then added the following statments: WriteLn ("Starting on Element Entry routines for: "+ @CurrentElement()). and WriteLn ("Starting on Element Change routines for: "+ @CurrentElement()). to their respective fields. Write Ln is still working OK, but results make no sense at all. No reason for the actions that are happening.
Sample of WriteLn results are: Starting on Element Exit routines for: REP Starting on Element Change routines for: REP Starting on Element Change routines for: REP
Actually, this was the result after leaving the first field: WORKDAY. I should have seen a message about Exiting WORKDAY, and Change in WORKDAY. The next field is REP, and I should have seen a message about Entry into REP. I never pressed ENTER or TAB to leave the REP field, it is not Read Only, and the cursor is sitting there.
This is just a short sample. Later in the flow, I may see about 16-20 WriteLn statements from 4 or more fields that I never went into.
Then decided to copy the Design, hoping to be able to rebuild a new application. I made a new empty application. I opened that application and did a Merge Application with the "defective " one. I then did a Mass Delete to remove all records from the two databases in the new application. Same results.....firing sequences are not logical. It would appear that this application and the designer files are totally corrupted.
I had been making frequent Saves in the Layout mode after checking out that Program had no errors. But unfortunately, somewhere in the process it would appear that the designer file became corrupted with no indication. Because of testing LU statements, I also had done Replications with existing database. (It is impractical to create a new application every time you want to test some programming, but I may have to do that from now on...GROAN).
System had been shut down and rebooted, no change.
I would like to sent the file for analysis and/or recovery. Any recomendations to recover here will be great, but really need to understand how this has happened.
|