Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

A variable and wildcard search in one string

Hi,

If I have records in a field and I want to find a string of text like xxxRedyyyOHLzzz

I have done it like this, but I know what to make OHL a variable

Sum({$<[ABC]={"*RED*OHL*"}>}Data)

But the variable is will come up as text, how can I can it to search on string with a fixed character and a variable

Sum({$<[ABC]={"*RED*$(vVariable)*"}>}Data)

Thanks,

Neil.

4 Replies
pokassov
Specialist
Specialist

Sum({$<[ABC]={"*RED*$(=vVariable)*"}>}Data)

tinkerz1
Creator II
Creator II
Author

Hi,

Thanks but putting the variable $(=vVariable) inside the * * it ends up being a text string search.

I am having the same issue,

jonathandienst
Partner - Champion III
Partner - Champion III

Thanks but putting the variable $(=vVariable) inside the * * it ends up being a text string search.    

Is that not what you want?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
tinkerz1
Creator II
Creator II
Author

It means I am searching for a string called $(=vVariable) Not what the variable is named 'OHL'

Thanks