Autor Beitrag
DXC
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 61

WINXP + SP2
D6 Pers, D2005 Pers
BeitragVerfasst: Fr 14.10.05 21:19 
Hallo,

also ich habe folgendes Problem:

ausblenden Quelltext
1:
[Fehler] Unit1.pas(63): E2035 Nicht genügend wirkliche Parameter					


hierbei:

ausblenden volle Höhe Delphi-Quelltext
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:
...

procedure decryption(letter: string; Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

...

procedure Tnmx_decryptor.decryption(letter: string; Sender: TObject);
var
  input, output: string;
  x, length_input, position: integer;
const
  original = ' ABCDEFGHIJKLMNOPQRSTUVWXYZ'+
             'abcdefghijklmnopqrstuvwxyzÄÖÜäöüß';
  key_a =    'MKrLcDXSfghäUöHVWjIZlNYvÄdx' +
             'an qsoPbAEBTFÖCyzükÜGmOßJweQRiptu';
begin
  input := input_memo.text;
  output := '';
  length_input := length(input);
  letter := '';
  begin
    if letter = 'a' then begin
     for x:= 1 to length_input do begin
      position := Pos(input[x],original);
      if position <> 0 then
        output := output + key_a[position]
      else
        output := output + input[x];
      end;
    output_memo.text := output;
    end;
  end;
end;

procedure Tnmx_decryptor.decrypt_buttonClick(Sender: TObject);
begin
  decryption('a');
end;

end.


Fragt aber jetz bitte nicht wozu der Quellcode da ist... ;).
Bin am verzweifeln, ich weiß einfach net was ich falsch mache. Die Meldung sagt mir auch net besonders viel...

Grüße
DXC


Moderiert von user profile iconraziel: Topic aus VCL (Visual Component Library) verschoben am Mo 17.10.2005 um 10:54
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 14.10.05 21:21 
Steht doch dran in der procedure was fehlt: Sender: TObject
--->
ausblenden Delphi-Quelltext
1:
Decryption('a', Self);					

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
DXC Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 61

WINXP + SP2
D6 Pers, D2005 Pers
BeitragVerfasst: Fr 14.10.05 21:27 
Danke vielmals... (es ist meine erste prozedur^^)
(Das liebe ich am DF. Schnell, Unkompliziert, Nett ;))

Grüße
DXC