Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 89 - UNBUFFERED  (Read 1573 times)
Reuben B.
Four Js
Posts: 972

« 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.


Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of
Contributor to
Pages: [1]
  Reply  |  Print  
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines