在處理手動驗證field數據的正確性時,個人覺得最好的處理方式如下:
SavePerChange
1. 將驗證代碼寫入SavePreChange 事件
2. 設置Record.Field.Style = "PSERROR"
3. 設置Record.Field.SetCursorPos(Page.Pagename);
4. 彈出Error信息。
FieldEdit
1. 驗證代碼寫入 FieldEdit 事件
2.設置Record.Field.Style = "PSEDITBOX"
在處理手動驗證field數據的正確性時,個人覺得最好的處理方式如下:
SavePerChange
1. 將驗證代碼寫入SavePreChange 事件
2. 設置Record.Field.Style = "PSERROR"
3. 設置Record.Field.SetCursorPos(Page.Pagename);
4. 彈出Error信息。
FieldEdit
1. 驗證代碼寫入 FieldEdit 事件
2.設置Record.Field.Style = "PSEDITBOX"