SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
GetLastError, no value returned.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
GetLastError, no value returned.
Author Message
Robert Kratcoski



Joined: 24 Jul 2002
Posts: 8

Post GetLastError, no value returned. Reply with quote

Hi,

I read another post in here which is basically
my same question. Why does the GetLastError
function always return a blank value.

The response from you was:

>>>>Make sure it is the first statement executed after an error.

So, I went and wrote a simple script (modeled
after the help example) and I still can't get an
error message string.

Here is my sample script:

Dim errMessage, string, ""
OnErrorGoTo DISP_ERROR
FileDelete( "c:\\zzzzzzz.txt" ) <<--- this file does not exist.

DISP_ERROR:
GETLASTERROR errMessage
MessageBox(errMessage)

Why can't I trap this message?


Fri Apr 25, 2003 2:45 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: GetLastError, no value returned. Reply with quote

Hmm. I also get an empty string whith this script.
Will do some more testing... I am running version 3.4.5

: Hi,

: I read another post in here which is basically
: my same question. Why does the GetLastError
: function always return a blank value.

: The response from you was: So, I went and wrote a simple script (modeled
: after the help example) and I still can't get an
: error message string.

: Here is my sample script: Dim errMessage, string, ""
: OnErrorGoTo DISP_ERROR
: FileDelete( "c:\\zzzzzzz.txt" ) <<--- this file does not
: exist.

: DISP_ERROR:
GETLASTERROR errMessage
: MessageBox(errMessage)

: Why can't I trap this message?

Fri Apr 25, 2003 3:13 pm View user's profile Send private message
Robert Kratcoski



Joined: 24 Jul 2002
Posts: 8

Post Re: GetLastError, no value returned. Reply with quote

: Hmm. I also get an empty string whith this script.
: Will do some more testing... I am running version 3.4.5
: GETLASTERROR errMessage

Thanks for the quick response.

If this is a bug, is there a workaround?

Robert

Fri Apr 25, 2003 4:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: GetLastError, no value returned. Reply with quote

Yes, this appears to be a bug which will be fixed in the next maintanence release.
I have copied several files from v3.4.6 (pre-release) to http://www.softtreetech.com/24x7/fixes/24x7_v346.zip
Download and unzip it into 24x7 home directory. This should fix the problem.

: Thanks for the quick response.

: If this is a bug, is there a workaround?

: Robert

Mon Apr 28, 2003 9:06 am 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.