How do I break a loop?
EX:
for x:=1 to 10 do
if x = 5 then "break"
end
When it got to 5, the loop would be broken, would not continue.
Of course it would be another condition.
I wonder if you have any.
I'm getting the error:
Access violation at address 00420214. Write of address 0000000E.
When creating a Thread. The error line is exactly the creation line (marked with '&').
In uses I added Unit3 (the thread)
In var , I...
Delphi, Lazarus
I need help from friends, a .pas code to simulate the subtraction of angles expressed in degrees °, minutes' and seconds "in Delphi or Lazarus, taking the values of two TEdit and giving the result of the subtraction in a Label...
In delphi 7 when opening the search dialog box: CTRL + F and selecting the option: Regular Expressions would like to find anything starting with the word GPField and ending with IsNull
For example, I have the following code:
if GPFiel...
I have the following code snippet:
if TMenuItem(fmPrincipal.FindComponent('teste')) <> nil then
if TMenuItem(fmPrincipal.FindComponent('teste')).Visible then
...
I look for a menu item and check if it is visible. But my c...
I'm trying to send mail using Outlook, through Delphi7, I've used this Documentation: Command-line switches to open outlook with message parameter passing, conforms below:
var
para,assunto,mensagem : string;
begin
para := '[email protected]...
I have a form in delphi and wanted to click a button a pre-created frame was added dynamically several times. I'm trying through this code:
procedure TMain.Button1Click(Sender: TObject);
var i:integer; frame:TFrame;
begin
for i:=0 to 5 do...
In newer versions of Delphi we can easily generate a version of the executable for distribution just by performing the compilation by Release .
This removes several useful points for the debugger and leaves the executable smaller.
Is th...
I'm developing a unit for a biometric reader.
When giving the CREATE, the unit create several objects in runtime within TabSheet.
Everything is running perfectly, but by loading the objects you can see blinking / drawing on the screen. Has anyon...