Midware TMWBuffer.WriteFields

From Overbyte
Revision as of 15:26, 14 May 2011 by Marie (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


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



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