Inside the style in the user interaction interface of the application, we should perform validity detection processing around the information input by the user, one example is: whether or not the input is often a number.
There is now a 'PingFangMi' input box for getting into numbers. We choose to verify the input information to determine if it truly is a quantity following the input box loses concentrate. Consequently, add the following code to the 'OnExit' event in the input box control:
attempt
iTemp:=StrToFloat(PingFangMi.Text);
except
ShowMessage('Invalid information was entered, a quantity is needed.');
end;
Then, compile and run the plan in DELPHI. Enter non-numeric characters in the input box 'PingFangMi', after which click other controls within the interface to trigger the code in the 'OnExit' occasion of the 'PingFangMi' input box.
But our expected outcome (a dialog box that says 'An invalid information was entered, a number was requested.') didn't seem. Alternatively, a 'DebuggerExceptionNotification' dialog box pops up, as shown inside the following figure.
Within best software to recover deleted files from hard disk , we normally click the 'OK' button to return for the DELPHI development environment, then press 'Ctrl+F2' to terminate the program.
So, how can we see the processing final results when the program is running in standard mode? That is definitely, ways to cancel the pop-up with the 'DebuggerExceptionNotification' dialog box now?
http://www.google.com is as follows:
This could be carried out if the DELPHIIDE preset error message is turned off
Tools-DebuggerOptions-select LanguageException page-Cancel the StopOnDelphiException alternative.
On the other hand, the outcome is the fact that there's no StopOnDelphiException option in DELPHI7.
Immediately after the author's search and discovery, the following operations can cancel the display of your 'DebuggerExceptionNotification' dialog box:
Tools-DebuggerOptions-OSException page-Cancel the alternative of Integrateddebugging
Inside the style in the user interaction interface of the application, we should perform validity detection processing around the information input by the user, one example is: whether or not the input is often a number.
attempt
iTemp:=StrToFloat(PingFangMi.Text);
except
ShowMessage('Invalid information was entered, a quantity is needed.');
end;