Вниз
Скачать: CL | DM;

Нет вывода   Найти похожие ветки 

← →
RomanaPro ©   (2003-01-30 22:16) [0]

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Label1: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
Label1: TLabel;
b:integer;
implementation


{$R *.dfm}

function PortIn(Port: byte):byte;
begin
Label1.Caption:=IntToStr(b);
end;

begin
b:=10;
PortIn(10);



end.



Не выводится значение 10 в метку TLabel, в чём проблема?


← →
MBo ©   (2003-01-31 06:48) [1]

function PortIn - не метод формы, значит, в ней надо писать
Form1.Label1.Caption:=

а из раздела var Label1: TLabel; УБРАТЬ!!!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.015 c
14-28993
Igor_thief
2003-01-26 15:29
2003.02.10
StringGrid


9-28576
Davert
2002-08-26 19:28
2003.02.10
Ландшафты


1-28792
waterfoll
2003-01-29 12:47
2003.02.10
Есть программа с двумя формами, Form1 и Form2, в Form1 на


7-29113
arc
2002-12-04 15:38
2003.02.10
Из памяти на диск


6-28980
Gamar
2002-12-16 09:31
2003.02.10
TNMHTTP и прочее




   Наверх