This seems to work:
Left := ReadInteger('Position', 'Frm_Main_Left', 0);
Top := ReadInteger('Position', 'Frm_Main_Top' , 20);
//1 of 2 monitoren (prog kan anders buiten beeld raken)
i := Screen.MonitorCount;
if (Left < 0) and
(i = 1) then
Left := 20;
if left > screen.Monitors[i-1].width -50 then
Left := 20;