Clone a row? Clone a master-detail set?

What's the best way to 1) clone a row (with a new unique index value, of
course); and 2) clone both a row AND its detail records?

(D2, Paradox)

JerryB