I have a list (using for each to iterate through it), with strings (e.g. “OK_riskprofile_2907_Ledger_20180601_tm_20180630.xlsx”, “production_care_make__2018_05-07-2018.xlsx” ). Now it needs to match a value in a datatable. So within the for each I have a for each row. Now the hard part is, the row(0).tostring gives values such as:
Why don’t you use .Contains method?
it help you check whether a part of string is present in a particular string or not!
I maybe not correct, but this might solve your problem!
Thanks for the suggestion, however the strings have comparable number of characters and within this string, the characters differ. So unfortunately contains does not work.