>This is exactly my point - I am trying to trace in the Debugger. As soon as I hit this line
>
>case b_sched.pref_lvl11 = 3
> =MESSAGEBOX(b_sched.base_id)
> =MESSAGEBOX( seek(b_sched.base_id, 'csrTemp1', 'base_id'))
>
> if not seek(b_sched.base_id, 'csrTemp1', 'base_id')
> lcReqOK = 'Booking requiring specific instructor base would be violated'
> endif
>
>the cursor immediately goes to the endcase line. Why it doesn't even attempt to get me my messageboxes I added out of the desperation?
>
>I don't think the coverage will provide any more insights here. I even started to wonder if I understand how case works in VFP. I have a condition which is true. Why no code inside the case statement is executed?
Have you set watches or otherwise 1,000% confirmed all variables have the values you expect?
You could try adding an OTHERWISE clause to see if it gets hit, maybe what you think is .T. is not.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up