Function CheckWord(ByVal Wrd As String) As String
Dim i As Integer
Dim Pos As Integer
Dim Found As Integer
Found = 0
For i = 1 To 26
Pos = InStr((Word(i).ToLower), Wrd.ToLower)
If Pos <> 0 Then
CheckWord = Word(i)
Found = 1
End If
Next
If Found = 0 Then
Label2.Caption = "Not match"
End If
End Function
s0312001
0
Light Poster
Recommended Answers
Jump to PostHmn, VB6 doesn't have the .toLower method. It uses an lcase(variablename or string) function...... try switching
Pos = InStr((Word(i).ToLower), Wrd.ToLower)
to
Pos = InStr(lcase(Word(i)), lcase(Wrd))
and see how that feels....
Jump to Posttry casting it to a string..... I am trying to help you with code fragments.... I don't know how the program works together in it's entirety, but try this:
Label1.Caption = Label1.Caption & CheckWord(cstr(Result.PhraseInfo.GetText))
Jump to PostHmn, I don't have the object for voice recognition that you have...
All 11 Replies
Comatose
290
Taboo Programmer
Team Colleague
s0312001
0
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
s0312001
0
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
s0312001
0
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
s0312001
0
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
s0312001
0
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.