BruceTTT Posted June 8, 2020 Share Posted June 8, 2020 I've tried both the anonymous method below and the MainModule's EnableSynchronousOperations = True and I still can't get the following form to block: frm:= TUWindowsLogin.Create(UniApplication); frm.ShowModal( procedure(Sender: TComponent; Result:Integer) begin if Result=mrOk then begin temp:= frm.AuthenticatedUser; end; end ); ShowMessage(temp); The "ShowMessage" call runs *before* the form shows. What am I missing? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted June 8, 2020 Share Posted June 8, 2020 hi, if frm.ShowModal = mrOk then ShowMessage( frm.AuthenticatedUser ); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.