Вниз
Скачать: 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.009 c
9-28578
Delphi 5.01
2002-08-28 18:51
2003.02.10
Problema s zagruskoi bitmap-ov is


14-29003
Феликс
2003-01-27 00:20
2003.02.10
Бывают ли тайные общества?


1-28804
RomaIzDurdoma
2003-01-28 22:28
2003.02.10
OLE


14-29032
Zhenka
2003-01-24 12:20
2003.02.10
Как найти ПОЛИНОМ


6-28972
Manulo
2002-12-12 16:20
2003.02.10
переролнение буфера сетевухи




   Наверх