AuthorMessage
Meka][Meka
Unstopable
Posts: 700

just a couple functions ive rewrote into c#, most vb proggers moving to c# will find these useful until they get used to the more useful c# functions
before first
Code:
      private string BeforeFirst(string sData, string sString) {
         if (sData.IndexOf(sString) != 0){
            try   {
               return sData.Substring(0, sData.IndexOf(sString));
            }
            catch { return sData; }
         } else { return sData; }
      }

afterfirst
Code:
      private string AfterFirst(string sData, string sString) {
         if (sData.IndexOf(sString) != 0) {
            return sData.Substring(sData.IndexOf(sString) + 1);
         } else { return null; }
      }

vickmaker
Ametuar
Posts: 127

ty , thats me trying some c# now and that helps
-//v