AnyDAC
ContentsIndexHome
Example
ShowMessage(VarToStr(ADConnection1.GetLastAutoGenValue('MyGen')));