SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Trap Error Message

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Trap Error Message
Author Message
Robert Kratcoski



Joined: 24 Jul 2002
Posts: 8

Post Trap Error Message Reply with quote

Hi,

How do you obtain the error message when an error occurs...like the message that gets written to a log when an error occurs?

Example:
OnErrorGoTo NOTIFY_ADMIN
.
.
.
NOTIFY_ADMIN:
Dim ErrMsg, string
Set ErrMsg, ???? <-- something that reveals the error that just occured.
MessageBox(ErrMsg)

I can't seem to find anything about a property or macro that holds this value. Does one exist?

Thanks in advance,
Robert

Wed Jul 31, 2002 12:35 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Trap Error Message Reply with quote

Dim ErrMsg, string
GetLastError ErrMsg
MessageBox ErrMsg

: Hi,

: How do you obtain the error message when an error occurs...like the message
: that gets written to a log when an error occurs?

: Example: OnErrorGoTo NOTIFY_ADMIN
: .
: .
: .
: NOTIFY_ADMIN: Dim ErrMsg, string
: Set ErrMsg, ???? <-- something that reveals the error that just occured.
: MessageBox(ErrMsg)

: I can't seem to find anything about a property or macro that holds this
: value. Does one exist?

: Thanks in advance,
: Robert

Wed Jul 31, 2002 12:48 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.