Article View: pl.comp.lang.pascal
Article #92296Obiekt jako parametr procedury - problem
From: Terrmit
Date: Thu, 06 Dec 2007 00:27
Date: Thu, 06 Dec 2007 00:27
24 lines
1357 bytes
1357 bytes
Witam,
Mam (w skrócie) taką procedurę:
procedure InitStringGrid(var Grid: TStringGrid; head: String);
begin
with Grid do begin
//costam robie, a na koniec
Hint := head;
end; //with
end;
Teraz w głównym programie wywoluję procedure tak:
InitStringGrid(sgIncProd, 'dymek');
No i okazuje się, że sgIncProd.Hint = '' (pusty)
a powinien zawierać wyraz 'dymek'.
Może jestem już zmęczony, ale nie bardzo kumam co jest nie tak.
Używam Lazarusa 0.9.25 i fpc 2.2.0-0 w Fedorze 8.
Sławek
Technical Details
Message-ID:
<fj7cka$ldq$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Terrmit <terrmitv@poczta.onet.pl> Newsgroups: pl.comp.lang.pascal Subject: Obiekt jako parametr procedury - problem Date: Thu, 06 Dec 2007 01:27:13 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 24 Message-ID: <fj7cka$ldq$1@nemesis.news.tpi.pl> NNTP-Posting-Host: fge166.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1196897738 21946 83.13.160.166 (5 Dec 2007 23:35:38 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Wed, 5 Dec 2007 23:35:38 +0000 (UTC) User-Agent: Thunderbird 2.0.0.9 (X11/20071115) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit