c# - comparing One String With Multiple Other Strings -


I have a winform C # sql app in which I am retrieving data and storing it in stars. like,.

  string a1 = Convert. ToString (srj [@ "sub_1"]); String a2 = Convert ToString (srj [@ "Sub_2"]); String A3 = Convert. ToString (srj [@ "sophon"]); String A4 = Convert. ToString (srj [@ "Sab_4"]); String a5 = convert ToString (srj [@ "Sub_5"]); String A6 = Convert ToString (srj [@ "Sub_6"]); String a7 = Convert ToString (srj [@ "Sub_7"]); String A8 = Convert ToString (srj [@ "Sub_8"]); String A9 = Convert ToString (srj [@ "Sub_9"]); String A10 = Convert ToString (srj [@ "Sub_10"]); String a11 = convert.ToString (srj [@ "Sub_11"]); String a12 = convert ToString (srj [@ "Sub_12"]);  

Here I am retrieving 12 values. Now I want to compare these values ​​such as 1, A2 ... with some stars like A29. If both the wire matches a compatible check box with string, then it must be checked. But the way I see it, I have to compare 30 strings with the first string, then with the second value 30 strings, and so forth.

Is there any way to use any other method?

You may be able to use eHow-Corse string string matching algorithms.

This will give you


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -