How do I to get the RecordID of the currently active record?

How do I to get the RecordID of the currently active record?

How do I to get the RecordID of the currently active record?