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")