Test

ACCPAC Common Controls

AccpacMultiuser.Test

Tests if the specified resource is locked, and if it's locked, indicates whether the lock is exclusive or shared.

Function Test(
  Resource As String,
  Exclusive As Boolean) As Boolean

Parameters

Resource

[in] the name of the resource

Exclusive

[out] flag indicating whether the existing lock is exclusive (TRUE) or shared (FALSE), if the resource is locked

Return Value

Returns whether the specified resource is locked.

Remarks

If possible, avoid using this method. Locking should be done by views rather than by UIs. Locking (by the UI or macro) is especially dangerous when ACCPAC is running remotely over the Internet.