Вниз
Скачать: 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.011 c
6-28956
ДенМат
2002-12-18 08:56
2003.02.10
DNS, PROXY


1-28874
Fishka
2003-01-30 15:49
2003.02.10
Win Xp и QuickReport - ???


1-28889
dtm
2003-01-30 13:16
2003.02.10
Обрамление наскольких ячеек в MS Excel при позднем связывании.


1-28742
Wolfhound
2003-02-01 00:29
2003.02.10
Почта


3-28624
AnatoliJ
2003-01-14 02:19
2003.02.10
Pomogite mne please v DBGrid programno zapisat dannije




   Наверх