` Template change to allow parameter passing to forms (Ken Wagner) - 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  

ABC: Template change to allow parameter passing to forms
1999-03-30 -- Ken Wagner
 
Newsgroups: topspeed.products.c5ee GentleCoders: A big tip of the hat (not dunce either) to Arnor, David, Russell, Steve et.al. The Update Form procedure overloading with amnesia in the calling browse may be solved. ABBrowse.TPW At line #1903 change: #PROMPT('&Update Procedure',PROCEDURE),%UpdateProcedure to #PROMPT('&Update Procedure',PROCEDURE),%UpdateProcedure #PROMPT('Parameters:',@s255),%UpdateProcedureParameters !(Add this line) At line #1931 change: #IF(%UpdateProcedure) #ADD(%ProcsCalled,%UpdateProcedure) #IF(~%EditInPlace) %ManagerName.AskProcedure = %(INSTANCE(%ProcsCalled)) #ENDIF #ENDIF to #IF(%UpdateProcedure) #IF (%UpdateProcedureParameters) #ADD(%ProcsCalled,%UpdateProcedure&%UpdateProcedureParameters) !New line for Parms with "&" #ELSE #ADD(%ProcsCalled,%UpdateProcedure) !If no parms passed by browse #ENDIF #IF(~%EditInPlace) %ManagerName.AskProcedure = %(INSTANCE(%ProcsCalled)) #ENDIF #ENDIF Thanks Arnor, for the C4 template patch to use as a guide. As Arnor stated: "You now have a parameter prompt below the update combodrop where you can specify the parameters in the normal format" e.g. (CustCode,StartDate,EndDate), remember to include the parentheses. Amazin'. Works. Does the code look right to you? Corrections & improvements welcome. G'day, mates. Ken Wagner


Today is April 20, 2024, 5:23 am
This article has been viewed 35114 times.
Google search has resulted in 19 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: