home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,942 of 10,840   
   Rick Rothstein to All   
   Re: String function help   
   02 Nov 04 19:34:06   
   
   From: rickNOSPAMnews@NOSPAMcomcast.net   
      
   > Is there a string function that returns the number of times   
   > string a occurs in string b?   
      
   Not directly, but there is simple code to do that...   
      
   OccurrenceCount = UBound(Split(StringB, StringA))   
      
   There are optional argument to the Split, one of which will allow you to   
   make the "search" case insensitive if you need that.   
      
   Rick   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca