All pastes #623614 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-17 18:54 UTC
rendered paste body
        public static string RSpace(string StringToRemove)
        {
            StringBuilder All = new StringBuilder();
            foreach (char Chr in StringToRemove)
            {
                string ChrS = Convert.ToString(Chr);
                if (!(ChrS == " "))
                {
                    All.Append(ChrS);
                }
            }
            return All.ToString();
        }
        public static bool IsNumeric(string ValidString)
        {
            try
            {
                Int32.Parse(ValidString);
            }
            catch
            {
                return false;
            }
            return true;
        }
        public static bool InStr(String String1, String String2)
        {
            if (String1.IndexOf(String2, StringComparison.OrdinalIgnoreCase) >= 0)
            {
                return true;
            }
            return false;
        }
        public static string Split(string StringToSplit, string Splitter)
        {
            int Index = StringToSplit.IndexOf(Splitter);
            int LastIndex = Splitter.Length + Index;
            string String1 = StringToSplit.Remove(0, LastIndex);
            return String1;
        }
        public static string Remove(string StringToRemove, string RemoveStringIndex)
        {
            int Index = StringToRemove.IndexOf(RemoveStringIndex);
            string String1 = StringToRemove.Remove(Index);
            return String1;
        }