TuxFML2View Function

Action

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

Include file

TUXEDO.bdh

Syntax

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

Return value

  • true if successful

  • false otherwise

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

Example

const
  ID_ELEM1 := 16;
  ID_ELEM2 := 32;

dcltrans
  transaction TMain
  var
    hFML, hView: number;
  begin

    // allocate buffers
    TuxGetBuffer(hFML, "FML", NULL, 1024);
    TuxGetBuffer(hView, "VIEW", "MyView", 1024); 

    // store dummy values in fielded buffer
    TuxSetInt(hFML, ID_ELEM1, 832);
    TuxSetInt(hFML, ID_ELEM2, 173); 

    // convert fielded buffer to view buffer
    TuxFML2View(hFML, hView);
  end TMain;