Firemonkey redirect to other delphi form

  

On my home.pas page on form show i have if statment, when debug my breakpoint go in statment show message alert but not redirect to DownloadPage stay at current home page. Any solution where is problem?
eg.
var f_download_page : frmDownloadPage.TDownloadPage; //Page where can download new version
begin
new_version := 10;
current_version := 5;

if new_version > current_version then
begin
//go to download page
ShowMessage(‘New version available!’);
f_download_page := TDownloadPage.Create(nil);
f_download_page.Show;
end;
end;

Comments are closed.