if cbUsername.Text = UpperCase(FCurrSelServer.UserName) then
begin
if MessageDlg(Format('The user you wish to delete is the same user you are logged into the server as.%sAre you sure that you want to delete user: %s?',
[#13#10,cbUsername.Text]),mtConfirmation, mbOkCancel, 0) = mrOK then
lConfirmed := True;
end
else
begin
if MessageDlg(Format('Are you sure that you want to delete user: %s?',
[cbUsername.Text]),mtConfirmation, mbOkCancel, 0) = mrOK then
lConfirmed := True;
end;
if lConfirmed then
begin
// if the user chooses to proceed
try
Screen.Cursor := crHourGlass; // change cursor to hourglass