Re: toggling a data block between read-only and editable.

From: Steve Cosner <stevec_at_zimmer.csufresno.edu>
Date: 4 May 1999 20:57:26 GMT
Message-ID: <7gnmvm$2ak$1_at_nntp.csufresno.edu>


In article <7gmu0j$6sm$1_at_nnrp1.dejanews.com>, <dhancock_at_voicenet.com> wrote:
>In forms 5.0......What is the best method for programmatically
>toggling a data block between read-only and editable. SET_BLOCK_PROPERTY ??
>efficiency is key because I have to manage 11 blocks this way.

We use Set_Block_Property in a generic PLL routine whenever a display-only user accesses a form that can normally run in update mode:

    SET_BLOCK_PROPERTY (BLKNAME,UPDATE_ALLOWED,PROPERTY_FALSE);
    SET_BLOCK_PROPERTY (BLKNAME,INSERT_ALLOWED,PROPERTY_FALSE);
    SET_BLOCK_PROPERTY (BLKNAME,DELETE_ALLOWED,PROPERTY_FALSE);

It seems to be working quite well. The PLL procedure just cycles through all the form's blocks, and if it is anything but the first control-block it shuts down update access to that block.

Steve Cosner
http://members.aol.com/stevec5088 Received on Tue May 04 1999 - 22:57:26 CEST

Original text of this message