Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wexist catches _screen's caption
Message
De
05/02/2005 19:20:18
 
 
À
05/02/2005 05:07:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00983563
Message ID:
00984251
Vues:
26
If I have a form with the caption "Hello - Test" and I type ?WEXIST("Hello"), it returns .T.. If I type ?WEXIST("Hello - Test"), it returns .T., but if I type ?WEXIST("Hello Test"), it returns .F. This behaviour is pretty much what I would expect.

Just so I have it clear, are you saying that no matter what argument you put in the WEXIST() function call, as long as it begins with "Hello", and there is a form that begins with "Hello", it always returns .T. even when the rest of the string does not match the rest of the caption?

In other words, if you have a form with the caption 'Hello Test', and you type ?WEXIST("Hello There"), it will return .T.?

>Thank you Sergey
>I have several ways to correct the problem by changing the call to wexist.
>But I have too many wexists scattered by the code.
>I think will change the _screen's caption by putting a dot or something before the user's text.
>
>
>>That makes WEXIST() function totally unreliable. Take a look at _WFindTitl function in FoxTools.
_screen.caption = "Hello - mYapp"
>>SET LIBRARY TO (HOME() + "FoxTools")
>>? _WFindTitl(_screen.Caption)
>>? _WFindTitl"Hello")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform