TuxView2FML Function

Action

Copies to content of a view buffer to a fielded buffer (FML, FML32).

Include file

TUXEDO.bdh

Syntax

TuxView2FML(in hFML  : number,
            in hView : number): boolean;

Return value

  • true if successful.

  • false otherwise.

Parameter Description
hFML Fielded buffer receiving the data
hView View buffer containing the data

Example

const
  ID_ELEM1 := 16;
  ID_ELEM2 := 32;

dcltrans
    transaction TMain
  var
    hFML, hView: number;
  begin
    // allocate buffer
    TuxGetBuffer(hFML, "FML", NULL, 1024);
    TuxGetBuffer(hView, "VIEW", "MyView", 1024);
 
    // store dummy values in view buffer
    TuxSetInt(hView, ID_ELEM1, 832);
    TuxSetInt(hView, ID_ELEM2, 173);
 
    // convert view buffer to fielded buffer
    TuxView2FML(hFML, hView);
  end TMain;