Search for Sub String within a String

Andrew2009

Well Known Member
I have the below input pipe delimited input String. I only process some logic for 340 and 722 Sub, otherwise I'll skip it. I'll loop through a table and if the sub is 340 or 722 then I'll process the logic in my UBE.

I found this bsfn B0800750 but it does not work. It returns 0 instead of 1. I don't want to parse the whole delimited string and compare each value.

I'm wondering if you know of another bsfn that can do what I need? Thanks

320|340|701|715|722|725
 

Attachments

  • 2017-05-22_16-27-29.jpg
    2017-05-22_16-27-29.jpg
    20.7 KB · Views: 19

nkuebelbeck

VIP Member
b74b0050.FindCharPositionInString74B

Returns the position of the first instance. you could then use some subtr logic to see if it contains the string your looking for

might help tokenize it.

OR

Write a C BSFN. Wouldn't be much to it.
 
Top