2 Replies Latest reply on Dec 8, 2013 9:17 AM by gkaiseril

    Switch/Case statement string matching ignoring case sensivity

    JeffBPaarsa Level 1

      In a    switch (pComp3Words)   { case "UNITEDCAREMEDICAL": .........} statement, I would like to ignore case sensitivity and I want to get a match if say my string comes in "UnitedCareMedical" or "unitedcaremedical" or ... to get a match... I used "UNITEDCAREMEDICAL"/I and got error then I used /UNITEDCAREMEDICAL/i did not get error at the compile time but error at execution time... Is there any way I write my Switch Case statement so so match how string comes I get a match?