I have a form whose refresh fails when the skip for of the last pad of an onform menu is empty. (The form is top level). I have verified htis in the debugger by testing the value of DOEEFAULT() in the form's refresh. The only physical difference in the MPR is as follows:
****** skip - disable the pad - form refreshed - generated menu code
DEFINE PAD rapports OF (m.cMenuName) PROMPT "Rapports" COLOR SCHEME 1 ;
KEY ALT+R, "" ;
SKIP FOR .T.
****** no skip - enable the pad - form does not refresh - - generated menu code
DEFINE PAD rapports OF (m.cMenuName) PROMPT "Rapports" COLOR SCHEME 1 ;
KEY ALT+R, ""
******
The menu is run in the init of the form
When another menu pad is added and it's skip for is set to .T. then skip for in the problematic menu pad is cleared, the refresh works.
Clearing the skip for in the new menu pad makes the refresh fail. So the conclusion seemed to be that a skip for clause was required in the last menu pad but "1 = 1", "1 = 2" and ".F.". causes form's refresh to fail where the result is .F.
Anyone run into this?
Thanks in advance
Charles Richard