Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Genmenu bug
Message
From
30/10/2001 22:44:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Genmenu bug
Miscellaneous
Thread ID:
00575455
Message ID:
00575455
Views:
47
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
Map
View

Click here to load this message in the networking platform