Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Poll
How long have you been using Baan-related products?
1 year or less
12%
between 1 and 3 years
14%
between 3 and 6 years
14%
between 6 and 10 years
23%
10 years or more
37%
Total votes: 139

Reference Content

 
db.retry.hit()
By patvdv at 26 Feb 2008 - 21:57

db.retry.hit()

Syntax

long
         db.retry.hit()




Description

Use this to check whether the client database layer has returned to a retry point. You must set the retry point by using db.retry.point() before you call db.retry.hit(). See also Database Handling.

Return values

0

Retry point defined but not returned to.

>0

System returned to retry point.

-1 No Retry point defined
-2 Stack Error (Programming error in script. A db.retry.point() was done at a deeper stack level)

Example

The following code construct can be used for checking purposes:

 if db.retry.hit() > 0 then
       | retry point hit
 endif

The following frequently used code construct is wrong:

 if db.retry.hit()    then    | db.retry.hit() can also -1 or -2 as error condition!
        | retry point hit
 endif

Context

Bshell function.

Related topics



0
No votes yet


All times are GMT +2. The time now is 22:53.


©2001-2008 - Baanboard.com - Baanforums.com