I use Genmenu to create my menus, but I get a compile error when I want to compile my project. When I go and check the err-file, this is what is in it:
Compiling c:\prj\gcs\menus\menurec.mpr
DEFINE BAR 5 OF (a_menupops[1]) PROMPT "Save" and _screen.activeform.leditmode==.F. ) or _screen.activeform.lnorec==.T. PICTURE "..\..\..\vfp70\efc\graphics\cmdsave.bmp"
Error in line 148: Command contains unrecognized phrase/keyword.
This is what is in my "Skip for" field in the menu builder:
(_screen.activeform.laddmode==.F. and _screen.activeform.leditmode==.F. ) or _screen.activeform.lnorec==.T.
What this means is that the save-command in the menu is only available when I'm editing/adding a record or in the case that there are already records in my form. If I only leave the following:
_screen.activeform.laddmode==.F. and _screen.activeform.leditmode==.F.
I do not get any errors while compiling, but I get an error when I run the software: "Function argument, value, type or count is invalid". This is what is in the generated mpr file:
DEFINE BAR 4 OF (a_menupops[1]) PROMPT "Save" ;
and _screen.activeform.leditmode==.F. ;
PICTURE "..\..\..\vfp70\efc\graphics\cmdsave.bmp"
It will probably be something stupid, but does anyone know how to solve this?
Thanks in advance!
Cheers
LotusE
Compiling c:\prj\gcs\menus\menurec.mpr
DEFINE BAR 5 OF (a_menupops[1]) PROMPT "Save" and _screen.activeform.leditmode==.F. ) or _screen.activeform.lnorec==.T. PICTURE "..\..\..\vfp70\efc\graphics\cmdsave.bmp"
Error in line 148: Command contains unrecognized phrase/keyword.
This is what is in my "Skip for" field in the menu builder:
(_screen.activeform.laddmode==.F. and _screen.activeform.leditmode==.F. ) or _screen.activeform.lnorec==.T.
What this means is that the save-command in the menu is only available when I'm editing/adding a record or in the case that there are already records in my form. If I only leave the following:
_screen.activeform.laddmode==.F. and _screen.activeform.leditmode==.F.
I do not get any errors while compiling, but I get an error when I run the software: "Function argument, value, type or count is invalid". This is what is in the generated mpr file:
DEFINE BAR 4 OF (a_menupops[1]) PROMPT "Save" ;
and _screen.activeform.leditmode==.F. ;
PICTURE "..\..\..\vfp70\efc\graphics\cmdsave.bmp"
It will probably be something stupid, but does anyone know how to solve this?
Thanks in advance!
Cheers
LotusE