>This affects ALL versions of Foxpro FPD, FPW and all VFPs.
>
>A bug in genmenu.prg which causes the LOCFILE(...) path to be incorrect on many occasions.
>
>Here's the original code snippet from Genmenu.prg
>
>m.g_homedir = ALLTRIM(SUBSTR(homedir,1,AT(c_null,homedir)-1))
>
>IF (RIGHT(m.g_homedir, 1) == "\")
> m.g_homedir = m.g_homedir + "\"
>ENDIF
>
>
>So if g_homedir has a backslash it adds another one. ROFL.
>
>I've yet to actually determine that fixing this bug won't break something else. It definitely has an impact in FPW2.6 when SYS(2014,....) is used later in the code to determine the relative path to the .mpr file.
Not quite sure this hurts, because VFP's (and FP's) file handling treats double backslashes as single backslashes, which is the most probable reason this went unnoticed. I think I've fixed this one myself once, but then the next version came and my fix was gone - no problem either. But then, it may be the problem didn't occur because whatever file the Locfile may be looking for, was always in my path.