Results 1 to 3 of 3

Thread: Msgbox messages

Hybrid View

  1. #1
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    msgbox

    ??

    Edited to add~~~~~~

    Oh I see what you mean... You need to exit the loop in order for the message boxes to stop popping up when they click OK

    VB Code:
    1. Open "c:\Address.dat" For Input As #1
    2. Do Until EOF(1)
    3. i% = i% + 1
    4. If Text1.Text = "" Then Exit Do
    5. If i% > UBound(Names$) Then ReDim Preserve Names$(1 To i%)
    6. If i% > UBound(Adds$) Then ReDim Preserve Adds$(1 To i%)
    7. Input #1, Names$(i%), Adds$(i%)
    8. If Text1.Text = Names$(i%) Then
    9. Text1.Text = Names$(i%)
    10. Text2.Text = Adds$(i%)
    11. Else
    12. msg = "NOT There"
    13. response = MsgBox(msg, vbOKOnly, "Attention")
    14. Exit Sub
    15. End If
    16. Loop
    17. Close #1
    Last edited by Spajeoly; Jun 4th, 2004 at 11:09 AM.

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