Wildcard in a filter

Stimulsoft Reports.NET discussion
Post Reply
chairmaninventive
Posts: 1
Joined: Thu Apr 04, 2024 6:43 am

Wildcard in a filter

Post 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.
Lech Kulikowski
Posts: 6291
Joined: Tue Mar 20, 2018 5:34 am

Re: Wildcard in a filter

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply