Difference between revisions of "Midware TMWBuffer.Next"

From Overbyte
Jump to navigation Jump to search
(Created page with ' Main page -> Midware component reference -> TMWBuffer -> Next == Definition…')
 
 
Line 14: Line 14:
 
<syntaxhighlight lang="delphi">
 
<syntaxhighlight lang="delphi">
 
   MWBuffer1.First;
 
   MWBuffer1.First;
    while not MWBuffer1.Eof do begin
+
  while not MWBuffer1.Eof do begin
        Memo1.Lines.Add(MWBuffer1.RecordToString);
+
      Memo1.Lines.Add(MWBuffer1.RecordToString);
        MWBuffer1.Next;
+
      MWBuffer1.Next;
    end;
+
  end;
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 15:17, 14 May 2011

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

Definition

procedure Next;

Description

Next method makes the next record the current one. See also Eof, Bof, First, Last, Next and Prior methods.

Example

The following code iterate MWBuffer data starting from first record up to last record. <syntaxhighlight lang="delphi">

 MWBuffer1.First;
 while not MWBuffer1.Eof do begin
     Memo1.Lines.Add(MWBuffer1.RecordToString);
     MWBuffer1.Next;
 end;

</syntaxhighlight>