Vb script question

Discussion in 'AutoCAD' started by James Murphy, Jan 25, 2004.

  1. James Murphy

    James Murphy Guest

    Background info:
    A htmp file with vbscripts and the dwf viewer imbedded in it. What I'm
    doing is loading a different dwf's file (mulitisheet) and trying to get the
    sheet collection in a listbox. This function works when I call it but with
    out the msgbox it will not do the listbox part. Is there a way to use a wait
    or sleep until the viewer is completely load then finish?

    function A_dwf
    adview.SourcePath="A_Units.dwf" <--loads this OK
    MsgBox "Ok here" <--with out this it runs too
    fast
    ListBox1.Clear <-- need to break,wait or
    sleep here
    for each page in AdView.Viewer.Pages
    ListBox1.additem page.name
    next
    end function


    Murph
     
    James Murphy, Jan 25, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.