tags:

views:

115

answers:

1

I will try the way of the following code:

'Click on Button1 spell checks Text1 textbox
Dim strResultText As String
Dim sc As New SpellChecker
sc.OpenDictionary "c:\SpellUS.lex"
Private Sub Button1_Click()
    TextBox1.Focus()

    strResultText = sc.CheckText(TextBox1.Text, ExitStatus)
    TextBox1.Text = strResultText
End Sub

But The above code is error. 1. SpellChecker 2.ExitStatus

I can identify the error.But I don't know.How do fix the error?.So anybody know the problem please help.

+1  A: 

I would imagine checking the ExitStatus would give you a clue about the error (if there is one that is)

James