General information
Category:
Menus & Menu designer
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only