` Embed for additional form field validation (Valentine Russev ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Embed for additional form field validation
1998-07-11 -- Valentine Russev
 
>I have a form and I want to do some additional validations before I allow >the window to close and update the record. In ThisWindow.TakeCompleted, Priority 2800 try something like this: IF YourTestFailed IF YouWantToStayInTheForm RETURN Level:Benign ELSIF YouWantToCancelWithoutSave SELF.SetResponse(RequestCancelled) SELF.CancelAction = Cancel:Cancel RETURN Level:Benign ELSIF YouWantToSaveAnyway !Do Nothing END Steve Gallifant notes: My usual method is to embed the code in Accepted for the OK button (priority first) and then CYCLE to keep the OK from processing.


Today is November 21, 2024, 7:42 am
This article has been viewed 35184 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: