/// <summary> /// Get's the currency id from the combobox value, e.g Nigerian Naira(NGN), it'll extract the NGN for you /// </summary> /// <param name="text">The value it takes in, note it must be in this format,e.g Nigerian Naira(NGN) where ngn is the unique currency ID</param> /// <returns>The Currency ID</returns> private string GetCurrencyId(string text) { string id = ""; //split string Split s = new Split(); string value = s.Divide(text, '(')[1];//this will help us break to an extent //now remove second ) and trim id = value.Replace(')', ' ').Trim(); return(id); }