Difference between revisions of "Midware TMWBuffer.Last"

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

Latest revision as of 15:14, 14 May 2011

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

Definition

procedure Last;

Description

Last method will make the lsat record the current one. See also Eof, Bof, First, Last, Next and Prior methods.

Example

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

MWBuffer1.Last;
while not MWBuffer1.Bof do begin
    Memo1.Lines.Add(MWBuffer1.RecordToString);
    MWBuffer1.Prior;
end;

</syntaxhighlight>