I have a delphi form that may be launched from different locations with different filters depending on where the user is coming from. Problem is when they launch if from LocationA and have it open then launch it from LocationB (which should show different groups and filters in the cxGrid) all it does is bring the already open form to front. How can I first check if its already open and if it is, close/terminate it THEN create the form?
if bRunApp then begin
AppLog.Msg := 'Loading frmDesEngReport...';