` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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

Par2: Multiple update forms
1999-05-11 -- Dennis Evans
 
Just comment out the standard code in the run method omit('####') GlobalRequest = Request UpdateProcedure ReturnValue = GlobalResponse ### now add something like the following GlobalRequest = Request execute Number UpdateProc_1 UpdateProc_2 ... end ReturnValue = GlobalResponse Now when you want to change update procedures set the BrowseClass AskProcedure property. Let's say you want to use a different procedure based on the tab selected. In the NewSelection embed add Brwx.AskProcedure = choice(?CurrentTab) or if you want a different procedure when Field_10 >= 100 in the accepted embed for the field if Field_10 >= 100 Brwx.AskProcedure = 2 elsif Field_10 = n Brwx.AskProcedure = 3 else ... end or any other condition you want or need. Note, ThisWindow.Run PROCEDURE(USHORT Number,BYTE Request) the number parameter is the value of the BrowseClass AskProcedure property. That is what the run method uses to call procedure x .


Today is May 6, 2024, 5:56 am
This article has been viewed 35111 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: