Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem (name collision) ?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Weird problem (name collision) ?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01666380
Message ID:
01666380
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform