dar1
September 15th, 2001, 10:57 AM
Can I count the vowels in a text box or in a file.
|
Click to See Complete Forum and Search --> : Counting vowels in text box dar1 September 15th, 2001, 10:57 AM Can I count the vowels in a text box or in a file. JeffB September 16th, 2001, 04:10 PM You must create your own functions that will receive as parameters a String and return a integer private function VowelCount(Word as string) as Integer 'some code ... end function 'into another function Dim NumberOfVowel as integer Dim WordToCheck as string WordToCheck = "word to check" NumberOfVowel = VowelCount(WordToCheck) There is no functions that make that in VB6 Cakkie September 16th, 2001, 04:34 PM private Function VowelCount(strText as string) as long dim T as Long dim VC as long for T = 1 to len(strText) Select Case UCase(mid(strText,T,1)) Case "A","E","U","I","O" VC = VC + 1 End Select next T VowelCount = VC End Function Tom Cannaerts slisse@planetinternet.be Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook dar1 September 18th, 2001, 06:34 AM How do I create my own Functions Please note I am a biginer dar1 dar1 September 18th, 2001, 06:35 AM How do I create my own Functions Please note I am a biginner dar1 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |