Page 1 of 1

Wildcard in a filter

Posted: Thu Apr 04, 2024 6:45 am
by chairmaninventive
My CMMS reporting tool is Stimulsoft based and the filter has what I believe is C# coding but not sure.
Syntax that works is similar to variablename.Contains(table.field) or table.field == "string".
How can I do a wildcard for my variable in the filter. I have a variable called varAddress.
I have tried table.name.Contains(varAddress)
I have tried table.name == %varAddress% , table.name == "%" + varAddress + "%"
What am I missing.

Re: Wildcard in a filter

Posted: Thu Apr 04, 2024 7:04 am
by Lech Kulikowski
Hello,

You can use the IndexOf function:
{table.name.IndexOf(varAddress) != -1}

Thank you.