Forum Discussion

simon_glet's avatar
simon_glet
Regular Contributor
12 years ago

ListBox ClickItem and Name Mapping wildcard possible issue

Greetings, (TC 9.20.2460.7, JScript)



We are adding new languages to our application and the field that are not yet translated have the pattern **EnglishString.



The only way I found ListBox.ClickItem and WndCaption Name Mapping to match any **EnglishStrings is to have ?*?*EnglishString.



According to the documentation it should be \*\*EnglishString or \\*\\*EnglishString as I am not sure how the name mapping is interpreted in a JScript project.



Even if I found a workaround, I was wondering if anyone ran into this issue and what solution they came up with.



Sincerely

 

1 Reply

  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Replying to myself ;-)



    After a closer investigation, the solution when a searcheable string can be wildcarded in TC (* or ?) is to replace all the reserved chars by one * once:



    - ***Something?Else -> *Something*Else



    A little brute force but works fine in my context.



    Sincerely