Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 8 Jahren, 5 Monaten
Letzter Beitrag:
vor 8 Jahren, 5 Monaten
Beteiligte Autoren:
Al, Piet van Zanten, Jimbo

Logical Window/File Names

Startbeitrag von Al am 19.04.2009 02:14

Hello All

Can anyone enlighten me as to the purpose of the "Logical Name" that Windev uses for windows and files etc?
When would you use the "logical name" in preference to the actual file name ?

For me it only causes problems as occassionally the logical name will suddenly aquire a "1" as a suffix. This can also happen after a "SaveAs"
The actual file name stays the same but then there is a battle to change the logical name to be the same as the actual name.
e.g. abc.wdw with "abc" as it's logical name will become "abc1" for it's logical name.

Regards
Al

Antworten:

Quote
Al
Hello All

Can anyone enlighten me as to the purpose of the "Logical Name" that Windev uses for windows and files etc?
When would you use the "logical name" in preference to the actual file name ?

For me it only causes problems as occassionally the logical name will suddenly aquire a "1" as a suffix. This can also happen after a "SaveAs"
The actual file name stays the same but then there is a battle to change the logical name to be the same as the actual name.
e.g. abc.wdw with "abc" as it's logical name will become "abc1" for it's logical name.

Regards
Al


Hi Al,

I have to produce a series of different products where one product contains large parts of another. The datafiles of each product have unified physical file names which start with BS.. BX.. KP.. BP.. and so on. Except groupware files, which are put in a separate database and are named all with MyGPW.. as a beginning of the name. Each group of customers (= users of a distinctive product) believes that their product is unique because of the different file names. However, programming is much easier because we don't use the prefixes of the physical files in code, just the logical names, and we can easily move around parts of the projects (windows, procedures ..) from one project to others. Just copy & paste. So windows have always the same names while fuiles are named differently.

Kind regards,
Guenter

von Jimbo - am 19.04.2009 06:08
Hello Guenter

Thanks for the explanation.

Regards
Al

von Al - am 19.04.2009 21:14
Hi Al,

In my experience the 1 is added to the logical name of a window if it's copied.
Sometimes Windev thinks the original window is still in the project, while it isn't, and it refuses to rename the copied window to the original name. (Delete the .cpl folder and/or restart Windev)
I also noticed that Windev 12 renames a window on disk to match it's logical name if you save it after the the logical name has been modified, which I think is very handy.
I'm always using a programming charter now and had some old windows without the win_ prefix. When I renamed the windows and saved them, their name on disk had also changed.

Regards,
Piet

von Piet van Zanten - am 20.04.2009 08:10
Hello Piet

You are right about the copy being the cause. Most times it has occurred after a "SaveAs". I will try the methods you suggested to overcome it next time it happens

Regards
Al

von Al - am 20.04.2009 12:36
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.