Results 1 to 5 of 5

Thread: Exit Code in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    St Peters, MO, USA
    Posts
    15

    Post

    Does anyone know if there is a way to capture an error code generated from a shelled VB application? In C the equivilant is return(0) or exit(0) - which would return 0 for the error number. I can use the Err.Raise to return an error, but this application will shell, execute, then close without any user intervention - if I use the Err.Raise I will get a popup and the process doesn't clear from memory. Any help would be appreciated.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    How about Generating an Error Log File?

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    St Peters, MO, USA
    Posts
    15

    Post

    Don't think that would work for what I need it for. I am using SQL 7 and have written an application that will be scheduled to run nightly to compile data that has been entered throughout the day. SQL 7 knows if a scheduled application has completed successfully by the exit code that it returns. W/o that exit code I will not know if the job failed or succeeded.

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    You could raise an error in SQL 7, which could be logged...

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    St Peters, MO, USA
    Posts
    15

    Post

    If I cannot return an errorcode how would SQL know that an error has occured? Would I still be able to use the notification services that are built into SQL (ie it pages me when the job fails) if I write the error to the log?

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