Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

People, quite an easy question! Link to the procedure in one word. Find similar branches


Serg5   (2001-12-19 15:14) [0]

procedure TForm1.Button1Click (Sender: TObject);
was
a, b: integer;
begin
a: = 3;
b: = 0;
b: = a * StrToInt (Edit4.Text) * StrToInt (Edit3.Text);
Label7.Caption: = IntToStr (b);
end;

procedure TForm1.Button2Click (Sender: TObject);
begin
Button1Click (); <<<< what is there to write to her ???
end;

Thank you!



tovSuhov   (2001-12-19 15:20) [1]

You can assign a Button1Click to the OnClick event in the Object Inspector, if you do not need to override events in rune-time.



MBo   (2001-12-19 15:25) [2]

Sender and write, but easier as tovSuhov wrote or set (at least in TForm1.Create)
Button2.Onclick: = Button1Click;



Alexander   (2001-12-19 15:51) [3]

Write Button1Click (Self);



Mick   (2001-12-19 15:59) [4]

In this particular case, just write Button1Click (nil);



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.56 MB
Time: 0.023 c
1-22099
Yulyashka
2001-12-19 17:43
2002.01.08
Question about DBGrid !!


14-22393
Felix
2001-11-08 21:54
2002.01.08
What to do?


14-22332
Noname (Andrews)
2001-11-05 16:20
2002.01.08
Moderator HELP !!!


1-22249
Eugene Zelikovsky
2001-12-17 13:53
2002.01.08
How to wait some time without using TTimer


1-22173
Petyun
2001-12-20 19:33
2002.01.08
Component installation





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish