Hitachi

JP1 Version 13 JP1/Script Description and Reference (For Windows Systems)


9.9.3 ResetRetryMode (cancel the lock error retry function)

Purpose

Cancels the lock error retry function.

Syntax
ResetRetryMode

This command has no arguments.

Description

The ResetRetryMode command cancels the retry operation to be performed if a lock error occurred in a command or statement that can be used with the lock error retry function.

The retry count and retry wait time that were set by using the SetRetryMode command become invalid, and the retry count and retry wait time that were set as part of the procedure in 2.4.5 Setting lock error retry function become valid.

Example
Dim BkupFileName, FileNo
TempFile( BkupFileName, "BUP", _TEMP_ )
Copy( _TEMP + "MODE.INF", BkupFileName )
DeleteFile( _TEMP_ + "MODE.INF" )  ' Disk write might delay
SetRetryMode( 5, 100 )  ' Set retry.
FileNo = TextOpen( _TEMP_ + "MODE.INF", CREATE )
ResetRetryMode  ' Cancel retry.
If FileNo = 0 Then
  MessageBox( _TEMP_ + "Failed to open MODE.INF", OK )
  Exit 2
Else
  TextWrite( FileNo, "Mode=ReadOnly" )
End If
TextClose( FileNo )
JP1/Script version

Supported from JP1/Script 10-00.