cancel
Showing results for 
Search instead for 
Did you mean: 

what's the difference of EqualToSearchType and StringParameterType

peter_peng
Advisor
Advisor
0 Kudos

what's the difference of these two search type if I use FreeFormParameter.NewString()?

I met a problem: if i used FreeFormParameter.EqualToSearchType, sometimes it failed, while StringParameterType always succeeded.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Peter,

EqualToSearchType looks for exact match of field value with supplied parameter value while StringParameterType matches substring of field value with supplied parameter value.

Example:

Using EqualToSearchType: "ABCDEFGH".equals("ABC") = FAIL

Using StringParameterType "ABCDEFGH".indexOf("ABC",0) > 0 = SUCCESS

Hope this helps

--

Venkat

peter_peng
Advisor
Advisor
0 Kudos

I see, thank you

Answers (1)

Answers (1)

peter_peng
Advisor
Advisor
0 Kudos

Can anyone help me with this?