View Single Post
Old 08-09-2003, 01:34 PM   #1 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
Character String Number

VB

This function determines how many occurances of a character are in a string.

Code:
Public Function checkString()

   Dim strChar As String
   Dim Char As String
  
   strChar = "Johnny Boy"
   Char = Split(strChar, "y")

  return UBound(Char)
  'returns 2

End Function
__________________
~Ryan

rdove is offline   Reply With Quote