🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #70670

Jak podpiac strukture pod DBEDIT czy DBCHECKBOX (lamerskie)

#70670
From: Jan Murat
Date: Thu, 23 Aug 2007 18:15
33 lines
1621 bytes
Witam
Dramatis personae: firebird, tib, d5 i ja bardzo w delphi poczatkujacy

Była sobie struktura
CREATE TABLE KONFIG(
	NAZWA_FIRMY Varchar(200),
	ADRES1 Varchar(200),
        50 innych zmiennych
}
przy takiej strukturze podpiecie pol pod dbedit nie stanowi problemu

nowa stuktuta (zmiany dokonali phpowcy im wszystko jedno bylo):
CREATE TABLE KONFIG
( 
    NAZWA Varchar(40),
    WARTOSC Varchar(200)
);

jak toto drugie polaczyc z tdbeditem?
ewentualnie jak to sie robi w delphi?

moze cos na ksztalt?
function pobierz_zmienna(difolt:variant; pole:string):variant;
begin
    konfig,open;
    if not konfig.locate('NAZWA',pole,[]) the result:=difolt else....
end;
ale przy takim czyms to sie pochlastam przy zmianie aplikacji

pozd jasiu

-- 
Wysłano z serwisu Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/
Technical Details
Message-ID: <fakirq$o2u$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "Jan Murat" <janmurat@NOSPAM.gazeta.pl>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Jak podpiac strukture pod DBEDIT czy DBCHECKBOX (lamerskie)
Date: Thu, 23 Aug 2007 18:15:22 +0000 (UTC)
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 33
Message-ID: <fakirq$o2u$1@inews.gazeta.pl>
NNTP-Posting-Host: 62.87.236.112
X-Trace: inews.gazeta.pl 1187892922 24670 172.20.26.242 (23 Aug 2007 18:15:22 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 23 Aug 2007 18:15:22 +0000 (UTC)
X-User: janmurat
X-Forwarded-For: 192.168.195.20
X-Remote-IP: 62.87.236.112
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit