Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird problem (name collision) ?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Weird problem (name collision) ?
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01666380
Message ID:
01666380
Views:
63
Hi everybody,

I have a simple application that doesn't have a menu. It has a main program that runs a form. The close button of that form has thisform.release() and in the program we have do cleanup in several places where cleanup is a standalone program included into the project.

When I run my application in the development environment and click on the Close button, I'm getting a weird error variable g_projalias doesn't exist. I searched with GoFish and finally had to debug it before I found that this code comes from the VFP generated menu code.

Why is that and what should I do? Should I re-name my program into something like CleanupEnvironment or instead of do cleanup try to use cleanup() as a function?

Any suggestions?

Thanks in advance.

UPDATE. I changed do CleanUp into do CleanUp.prg and the problem went away. Is it an OK solution?
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform