hina_shams
12 years agoNew Contributor
Selecting items by substring in tree view
Hi,
I was wondering, if there is a way to select item by providing a substring in tree view.
For example you can select items by index or by exact name like item(0) or item("flight").
Can you do something like that item(0).Contains("firm"), that would return a item that contains the string "firm".
I tried this but it didn't work. How can I achieve this? Any help would be appreciated.
Thanks,
Hina
I was wondering, if there is a way to select item by providing a substring in tree view.
For example you can select items by index or by exact name like item(0) or item("flight").
Can you do something like that item(0).Contains("firm"), that would return a item that contains the string "firm".
I tried this but it didn't work. How can I achieve this? Any help would be appreciated.
Thanks,
Hina
- Hi Hina,
You can use * and ? wildcard characters for that. For example:
item("flight*") will get an item that starts with "flight"
item("*flight") will get an item that ends with "flight"
item("*flight*") will get an item that contains "flight"
Asterisk is for n quantity of characters, while ? is for as many characters as symbols (??? will be 3 characters)
You can find more information in this article.
Hope it helped!