First sort by the column in question (e.g., employee_id) and create a computed column (e.g., f_unique) with the evaluation employee_id = employee_id[-1]. Code something like the following in the DataWindow pfc_validation event or, if your non-PFC, prior to the Update():
This.SetSort(“employee_id A”) This.Sort() IF (This.Find(“f_unique = 1″, 1, This.RowCount()) > 0) THEN // error processing MessageBox(“Error”, “Some meaningful error message”) Return -1 END IF
No comments:
Post a Comment