SAM_RowValidate is sent to a table window before the table window's focus row changes, letting the application validate the contents of the row. The SAM_RowValidate message is sent regardless of the current row flags or cell edited flags. It is sent only when you change the focus row, not when you remove the focus from the table window. If the application returns VALIDATE_Cancel, the focus remains on the current row. If the application returns VALIDATE_Ok, the table window behaves as normal and changes the focus row. Message Variables hWndForm Window handle of the table window. hWndItem Window handle of the table window. wParam Unused. lParam Table window context row (first row is 0, second row is 1, and so on). Example Table Window: tbl1 ... Message Actions On SAM_RowValidate If SalIsNull( col1 ) Call SalMessageBox( 'You must enter a value', 'Validation Error', MB_Ok ) Return VALIDATE_Cancel Else Retu

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public const int SAM_RowValidate

See Also