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.
- 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.