Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on August 17, 2021, 04:38:31 am



Title: Ask Reuben 89 - UNBUFFERED
Post by: Reuben B. on August 17, 2021, 04:38:31 am
The concept of Buffered mode is the default Informix-4gl behaviour that we inherited.  It has two key characteristics …

1. Program variable changes are not automatically displayed to form fields, you need to execute a DISPLAY TO or DISPLAY BY NAME to force the changed value to be displayed

2. When an action is triggered the value of the current field is not validated and has not been copied into the underlying program variable, instead it is in a buffer accessible with FGL_DIALOG_GETBUFFER() / GET_FLDBUF() / ui.Dialog.getFieldBuffer()

UNBUFFERED mode was introduced to tightly couple the form fields and the underlying 4gl variables.  You no longer need the extra DISPLAYs and the code to read variables from buffers.  As a result you need less lines of code and your code is easier to read and maintain.

Read more at https://4js.com/ask-reuben/ig-89/