SuDokuPuzzle: Change

Change

Raised to indicate that a square has changed.



 Public Event Change(
	  ByVal Row As Integer,
	  ByVal Col As Integer,
	  ByVal Digit As Byte,
	  ByVal NewGame As Boolean )

Parameters

Row
[ByVal] Integer. The row of the square that has changed.
Col
[ByVal] Integer. The column of the square that has changed.
Digit
[ByVal] Byte. The new digit of the specified square.
NewGame
[ByVal] Boolean. If TRUE, indicates this change is the result of starting a new game. This can be used by a GUI application to reset the locked (given) squares, or anything else neccessary.

Remarks

This can be trapped by a GUI application to update the screen. This event will fire for the square changed by a move, and any other squares affected by that move.

Also, when a new game is started, this will be fired for every square, clearing all blank squares and filling in any givens.

See Also

Project SuDokuLib Overview Class SuDokuPuzzle Overview SuDokuPuzzle Properties SuDokuPuzzle Methods CheckMove