Midware TMWBuffer.WriteFields

From Overbyte
Revision as of 20:02, 5 May 2011 by Marie (talk | contribs) (Created page with ' Main page -> Midware component reference -> TMWBuffer -> WriteFields …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> Midware component reference -> TMWBuffer -> WriteFields

Definition

procedure WriteFields(NewRec:Boolean;Args:array of const);

Description

Example

<syntaxhighlight lang="delphi">

MWBuffer1.Rewrite;  // Clear TMWBuffer content
   MWBuffer1.WriteFields(TRUE, ['Hello', 'World'];
   for I := 1 to 3 do
       MWBuffer1.WriteField(FALSE, [I]);
   MWBuffer1.WriteField(FALSE, ['Finished']);
   MWBuffer1.WriteFields(TRUE, ['Another', 'Record'];

</syntaxhighlight> This sample code will write two records. The first will contains 6 fields: 'Hello', 'World', '1', '2', '3', 'Finished'. The seond will contain two fields: 'Another', 'Record'.