Conflict Catcher

See Also

Category Data Query
Default Catalog Visual FoxPro Catalog\Foundation Classes\Data Query
Class _conflicts
Base Class Form
Class Library _dataquery.vcx
Parent Class _form
Sample ...\Samples\Vfp98\Solution\Ffc\Conflicts.scx

Remarks

This class provides a dialog box that displays, conflicting rows encountered during editing sessions under optimistic buffering. The original, current, and new values are presented for resolution. You can use this class with either row or table buffering.

To use, drop the class on a project or, from the Component Gallery Item Shortcut menu, select Add to Project. When you drop the class on a project, you can choose between adding the class, creating a subclass, or creating a form. If you choose Create a new form from the selected class, Visual FoxPro displays the Open dialog box so you can specify the name of the form, then creates and opens the form in the Form Designer. You need to SET MULTILOCKS ON and enable buffering.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
CursorAlias property Specifies the alias to check for conflicts.
Default: ""
lAutoCheck property Specifies whether checking begins on startup.
Default: .T.
StartCheck method Checks for conflicts in the buffered data of the alias.
Syntax: StartCheck( )
Return: none
Arguments: none
ConflictAlias property Internal to the class.
lRowConflict property Internal to the class.
aConflicts[1,0] property Internal to the class.
NextConflict method Internal to the class.
CheckSource method Internal to the class.
Alert method Internal to the class.