Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird problem (name collision) ?
Message
From
15/02/2019 01:58:58
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01666380
Message ID:
01666429
Views:
69
>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?

I would alter my function/prg name. I run into to much hickups with such stuff on years later where I could'nt remember and run into the same trap again.

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform