Here is a piece of code to prevent duplicate data on a specific field on a page grid. You can of course modify it to check for multiple fields or even the whole row.
To To , , , “Error. Duplicate values are not allowed.”); End-If; End-For; End-For; I recommend storing your Error message into the message catalog. If you do that then just replace the last two zeros in the MessageBox Function with your message_set and message_num accordingly. 理解:上面的代码是在level1中把每一行和level1中的所有行做比较(两层For)