>local lnAnswer, strControl > >if thisform.mDataChanged() > >lnAnswer = messagebox(' Please Save or Undo changes before launching another screen... ', ; >0 + 64 + 0, 'System Message') >strControl = thisform.pLastControl >if !strControl = "" >if pemstatus(thisform, (strControl), 5) >thisform.(&strControl).setfocus() >endif >endif >thisform.(strControl).setfocus() >thisform.mGetStatus() >return .f. >endif >>BUT I cannot get the thisform.thisbloomingcontrol.setfocus() right - I have tried &strControl [strControl] and everything in between... please put me out of my mysery!!!