Skip to toolbar

FromDataSet current record

Home Forums kbmMW FromDataSet current record

Viewing 1 reply thread
  • Author
    Posts
    • #55090
      mrluigi2017
      Participant

      Hi,

      Is there an easy way to just use the current record in the FromDataSet method?

      Thanks in advance!

    • #55091
      kimbomadsen
      Keymaster

      If you are using the FromDataset method of the ORM, that returns an instance of an object with the data from the dataset, you can set the last property to false, then it will provide the current record rather than the first, which is the default.

      function FromDataset(const ADataset:TDataset; const AUnmodified:boolean = false; const AFirst:boolean = true):T;

Viewing 1 reply thread
  • You must be logged in to reply to this topic.