` 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: Control (single record) files
1998-04-19 -- Nik Johnson
 
You have to be careful about timing here. What I would do is have a source procedure which sits between the menu (or whatever triggers the configuration file update process) and the update form: LinkUpdate PROCEDURE CODE IF NOT Relate:Config.Open SET(Config) IF Access:Config.Next() GlobalRequest = InsertRecord ELSE GlobalRequest = ChangeRecord END ConfigForm() Relate:Config.Close END RETURN This makes sure that the file is open, the record is current (or the buffer cleared) and GlobalRequest is set -before- you ever get to the update form. In that way you don't have to worry about little things like the fact that the update window will initialize GobalRequest before -it- opens the file. The update form at this point should see no difference between this call for a singular record and a request from a browse of many records.


Today is November 23, 2024, 2:23 am
This article has been viewed 35270 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: