Results 1 to 4 of 4

Thread: disk a

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    panama
    Posts
    57

    Question

    need say to disk is in the "a:\" but no message error in te compliation

    ej: if disk not found() then
    message "disk not ready"


    understand


    sorry my bad english


    thanks
    carlosapv
    [email protected]
    THE TRUTH IS OUT THERE
    Visual Basic 6.0 SP5

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946
    do a dir a:\ in code and when you see what message it
    produces apply your code.

    example:
    if err.number = # 222

    then
    On Error Goto QuitNow:

    Your subs


    QuitNow:
    if err.message = 222 then
    msgbox "Sorry, there is no disk in drive A"
    exit sub
    endif
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    panama
    Posts
    57

    not work

    th err.number not work, is a variable or function of visual basic ?

    or const for load ?


    thanx
    carlosapv
    [email protected]
    THE TRUTH IS OUT THERE
    Visual Basic 6.0 SP5

  4. #4
    Guest
    This is an example of [b]Error Trapping[b]

    Code:
    On Error GoTo 100
    Dim mp As Integer
    mp = 459549529
    Exit Sub
    
    100
    If Err = 6 Then End

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