Quote:So...The Exit Code fires, and then the Mode Changes.
Yes
Quote:Moving along......
And since we are now in Navigate Mode, that means that the On Entry code for the LE with focus will not run when we moved because we used a mouse.
No. The on Entry event for the element you are going to is going to run and it does not matter if you use the mouse or the keyboard to get there.
Quote:BUT...if moved with a TAB, we would still be in Edit Mode....
No, You would be in Navigation mode.
Quote:If we moved with the mouse, we will have to click in that LE again to put us into Edit Mode which will then fire the On Entry for that LE.
You will have to either click once more in that element, no matter how you moved there, to get into edit mode or type a character. Typing something automatically puts you in update mode.
Quote:The On Entry for the form will not fire also because we never left the form, therefore we are not entering it
again.
Did you move to a different record or not? The On Form Entry and Exit commands are slightly misguiding because their names would probably be better off as On Record Entry and On Record Exit.
Quote:START
1. Focus comes into Form. Is Navigate Mode?
You are always going to be in navigate mode when focus is first put on the form.
Quote:.....Yes>No programming is run. Goto End
Wrong. The On Element Entry event for the element getting focus is going to run. Also the On Form Entry event is going to run.
Quote:......NO>(In Edit Mode) Run Form On Entry programming
Nope. You are
not going to be in Edit Mode. but Yes the programming is going to run.
Quote:......Throw focus to first field if not done in OnEntry program.
Huh. Focus is put in the first element/cell of the first record in a Table view subform automatically by Sesame when you advance the parent record.
Quote:3. Is this a subform?
......YES> Continue to 3.
This is number 3.
Quote:4. In Navigate Mode?
.....YES>No programming will be executed. goto End
Wrong. Table View Subform Programming is Executed in Navigate Mode. The only event that is not is the on Element Exit event,
IF AND ONLY IF you are leaving an element that is in Navigate mode on a table view subform and clicking on an element on the
PARENT Form.
Quote:Receive input>Run LE On ImmediateChange
Only if the keystroke changes the value in the element
Quote:............NotifyForm=4?
...................NO>Ignore NotifyForm
...................YES>Prevent Delete.
This has nothing to do with an On immediate Change event. If the User hits F3 or Clicks Delete Record on the Menu tree then NotifyForm() is checked to see if it is set to 4.
Quote:............Lose LE Focus?
............YES>Run LE OnExit programming. Move focus .
.............NO>.....Wait for user input.........
Yes
Quote:PARENT FORM SECTION
5. In Navigate Mode?
.....YES>No programming will be executed. goto End
.....NO>(In Edit Mode)Run le OnEntry Programming.
No. Parent Forms do not have a navigate or edit mode.
ONLY Table View does. And Once again Table View Subform Programming is Executed in Navigate Mode.
Quote:............Receive input>Run LE On ImmediateChange
Yes
Quote:............NotifyForm?
...................YES>Set Flags per value
NotifyForm has nothing to do with the programming events. It is a state.
Quote:............Lose LE Focus?
............YES>Run LE OnExit programming. Move focus from LE .
Yes, when you leave an element the On Exit event programming will run for that element, assuming you are moving to another element on same form.
-Ray