Вниз
Скачать: 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
1-28882
Noname2
2003-01-24 13:45
2003.02.10
Торможжууууууу


4-29162
max001
2002-12-26 20:18
2003.02.10
люди очень нужна помощь!!!!!!!!!!!!


1-28696
Ihtiandr
2003-01-31 13:25
2003.02.10
Form


3-28595
cranium
2003-01-21 20:32
2003.02.10
Можно ли в ХП в качестве параметра передовать имя таблицы?


1-28795
romikadze
2003-02-01 13:59
2003.02.10
Масштабирование рисунка в TImage




   Наверх