Sys(3051), Sys(3052)
The goal of these two functions is to give you increased control over file and record locking. SYS(3051) supposedly lets you specify the length of time FoxPro waits before trying again to lock a file. SYS(3052) lets you decide what FoxPro does if an index or memo file is locked and you want to lock it.
Usage |
cWaitTime = SYS( 3051 [, nWaitTime ] ) |
Parameter |
Value |
Meaning |
nWaitTime |
0 |
Reset to default (333 milliseconds). |
100 to 1000 |
The time, in milliseconds, FoxPro should wait between attempts to lock a file or record, if SET REPROCESS calls for multiple attempts. |
|
Omitted |
Return the current setting. |
|
cWaitTime |
Character |
The current setting for wait time. If you pass a legal value for nWaitTime, returns the new setting as a character string. |
Usage |
cHonorReprocess = SYS( 3052, nFileType [, lHonorReprocess ] ) |
Parameter |
Value |
Meaning |
nFileType |
1 |
Index Files |
2 |
Memo Files |
|
lHonorReprocess |
Logical |
Should attempts to lock the specified file type honor the current reprocess setting? |
Omitted |
Return the current setting for the specified file type. |
|
cHonorReprocess |
"0" |
VFP doesn't honor the reprocess setting for the specified file type. |
"1" |
VFP honors the reprocess setting for the specified file type. |
Example |
* Lengthen the reprocess delay = SYS(3051,1000) |
See Also |