Setup Kit: ErrorCopy Error Handler Causes "No Resume" Error

ID Number: Q85989

1.00

WINDOWS

buglist1.00

Summary:

The CopyFile function located in the SETUP1.BAS file handles run-time

errors incorrectly. If a run-time error occurs within the CopyFile

function, a message box displays "No Resume," and when the OK Button

is clicked, the program terminates. The code further below corrects

the CopyFile error handler "ErrorCopy:".

Microsoft has confirmed this to be a problem with the Setup Kit

supplied with the Microsoft Professional Toolkit for Microsoft

Visual Basic programming system version 1.0 for Windows. We are

researching this problem and will post new information here as it

becomes available.

More Information:

With the following correction, a run-time error in the CopyFile

function causes it to return False (0), which the calling routine

handles by displaying the following message

The Test Application is not properly installed. Please re-run setup

at a later time to install the Test Application properly.

before terminating the program.

Replace the following code in the CopyFile function located in the

SETUP1.BAS file

ErrorCopy:

CopyFile = False

Close

End Function

with the following:

ErrorCopy:

CopyFile = False

Close

Screen.MousePointer = 0

Exit Function

End Function

Additional reference words: 1.00