Results 1 to 9 of 9

Thread: [RESOLVED] Script Problem

Threaded View

  1. #1

    Thread Starter
    Addicted Member Garrett19212's Avatar
    Join Date
    Jan 2005
    Location
    US
    Posts
    220

    Resolved [RESOLVED] Script Problem

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4. Dim n As Integer
    5. Dim i As Integer
    6. word() = Split(Text1.Text, " ")
    7. n = UBound(word) + 1
    8. Label1.Caption = n
    9. For i = 1 To n
    10. Spell word(i), i
    11. Next
    12. Text1.Text = ""
    13. Text1.Text = word(1)
    14. For i = 2 To n
    15. Text1.Text = Text1.Text & " " & word(i)
    16. Next
    17. End Sub
    VB Code:
    1. Option Explicit
    2. Public word() As String
    3. Function Spell(w As String, z As Integer) As String
    4. If w = "like" Then
    5. word(z) = "lke"
    6. End If
    7. End Function

    VB Code:
    1. Spell word(i), i
    Thats the error.

    The program is suppose to be like a spell checker.
    Last edited by Garrett19212; Nov 14th, 2005 at 10:07 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width