Controlling execution of following steps

  • I have a VB program that imports data into a DB, it checks for the presence of a file created by the FTP process that puts the data on the server and only runs when new files are present.

    There are a number of steps following it, that only need to run IF it processed new data.

    The scheduler allows control via a Process exit code, but I can't figure out how to get VB6 to set this.

    So does anyone know how to have VB6 set this, or have some other suggestion ??

    KlK, MCSE


    KlK

  • Declare the following:-

    Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)

    Then in your code:-

    ExitProcess (yourexitcode)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply