Вниз
Скачать: 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.012 c
1-28760
ed
2003-01-28 21:44
2003.02.10
В чем ошибка!


1-28803
SaperXL
2003-01-31 04:01
2003.02.10
Активация - деактивация формы


14-29027
anpsoft
2003-01-22 02:04
2003.02.10
QuickBooks Pro and LedgerLink - есть кто ???


1-28931
Cherepovets
2003-01-31 12:34
2003.02.10
Поиск в файле


9-28568
Armageddon
2002-08-31 11:15
2003.02.10
Разное




   Наверх