Samling af gode Delphi kommandoer

Q: What is the fastest way to load a TFDMemTable from another dataset (including structure)? (link)

A: The most simple way to copy the structure and data from a TDataSet to a TFDMemTable is to use the CopyDataSet method:

FDMemTable1.CopyDataSet(DataSet1, [coStructure, coRestart, coAppend]);