Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WEXIST() versus CAPTION
Message
From
29/01/1997 20:31:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00018768
Message ID:
00018776
Views:
35
>Is it really related to your caption, or just the caption at the time the window was created ? If the object is created with a fixed name, then the caption / title changed later, would this allow you to refrence the object later by it's created name ?

The caption is the application caption which is _screen. So, here's an example. I start my application in french and I see the enabling of the menu item supplier. From my tools menu, I change to english so the menu will refresh in english as well as the _screen.Caption. Now, my menu item is disabled.

My supplier menu item is calling a pick list. The pick list is not defined as an object form with DO FORM NAME syntax. So, that's why I want to refer to it as WEXIST('SUPPLIER'). My framework is given SUPPLIER to the ThisForm.Name property. Until Visual FoxPro 3, this was working fine. This is the first time we discover this after our 3rd conversion in Visual FoxPro 5 because of the coincidence of the _screen.Caption value.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform