Difference between revisions of "ISMARKED()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to verify if journaling is in operation
 
Function to verify if journaling is in operation
 
  
 
==Syntax==
 
==Syntax==
 
ISMARKED()
 
ISMARKED()
 
  
 
==See Also==
 
==See Also==
Line 13: Line 11:
 
==Description==
 
==Description==
 
The ISMARKED() function returns .T. if the current workarea is marked as having a transaction in progress and .F. if not.
 
The ISMARKED() function returns .T. if the current workarea is marked as having a transaction in progress and .F. if not.
 
  
 
==Example==
 
==Example==
Line 46: Line 43:
  
  
==Products==
+
Recital Server, Recital
+
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Transaction Processing]]
 
[[Category:Transaction Processing]]
 
[[Category:Transaction Processing Functions]]
 
[[Category:Transaction Processing Functions]]

Revision as of 12:09, 7 December 2012

Purpose

Function to verify if journaling is in operation

Syntax

ISMARKED()

See Also

BEGIN TRANSACTION, COMPLETED(), END TRANSACTION , RESET IN, ROLLBACK, ROLLBACK(), SET ROLLBACK

Description

The ISMARKED() function returns .T. if the current workarea is marked as having a transaction in progress and .F. if not.

Example

procedure recovery
  rollback 
  if rollback()
      dialog box "Rollback was ok."
  else
      dialog box "Rollback not completed."
  endif
return
 
use setcomm
on error do recovery
if ismarked()
    dialog box "Other transaction in progress."
    return
endif
begin transaction
    delete first 15
    insert
    replace all t1 with (t2*t3)/100
    list
end transaction
if completed()
    dialog box "Transaction completed.  No errors."
else
    dialog box "Errors occurred during transaction"
endif