sorry voor de vage naam maar als een moderator een betere heeft verander hem dan maar.
Ik ben voor het eerst iets met delphi te doen en ik krijg een fout melding kan iemadn me helpen.
dit is dus de code die ik heb.
en dit zijn de meldingen
Ik ben voor het eerst iets met delphi te doen en ik krijg een fout melding kan iemadn me helpen.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TLabeledEdit;
Edit2: TLabeledEdit;
BitBtn1: TBitBtn;
StaticText1: TStaticText;
StaticText2: TStaticText;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
var E1, E2, L: integer;
begin
E1 := StrToInt (Edit1.text);
E2 := StrToInt (Edit2.text);
L := StrToInt (Label1.text);
if Edit1 <= 1
then label1.caption := IntToStr (edit2-3000)
else if Edit1 = 2
then label1.caption := inttostr (edit2-4500)
else if Edit1 = 3
then label1.Caption := inttostr (edit2-6500)
else if Edit1 >= 4
then label1.caption := inttostr (edit2-(edit1*2000))
end;
end. |
dit is dus de code die ik heb.
code:
1
2
3
4
5
6
| [Error] Unit1.pas(37): Undeclared identifier: 'text' [Error] Unit1.pas(39): Incompatible types [Error] Unit1.pas(39): Operator not applicable to this operand type [Error] Unit1.pas(41): Incompatible types [Error] Unit1.pas(41): Operator not applicable to this operand type [Fatal Error] auto_P.dpr(5): Could not compile used unit 'Unit1.pas' |
en dit zijn de meldingen