Article View: pl.comp.lang.delphi.bazy-danych
Article #82722Re: Kopiowanie , prośba o podpowiedź - kopiowanie pól z dbgrid
From: lordbz
Date: Thu, 02 Feb 2017 10:26
Date: Thu, 02 Feb 2017 10:26
30 lines
2938 bytes
2938 bytes
>
> To proste. Pod różne pola wkładasz jedno i to samo:
>
> ADOQuery3.Parameters.ParamByName('GRUPA').Value:= DBGrid2.DataSource.DataSet.Fields[x].AsString;
> ADOQuery3.Parameters.ParamByName('NAZWA').Value:= DBGrid2.DataSource.DataSet.Fields[x].AsString;
> ADOQuery3.Parameters.ParamByName('RODZAJ').Value:= DBGrid2.DataSource.DataSet.Fields[x].AsString;
>
> czyli w pierwszym kroku pętli:
>
> ADOQuery3.Parameters.ParamByName('GRUPA').Value:= DBGrid2.DataSource.DataSet.Fields[0].AsString;
> ADOQuery3.Parameters.ParamByName('NAZWA').Value:= DBGrid2.DataSource.DataSet.Fields[0].AsString;
> ADOQuery3.Parameters.ParamByName('RODZAJ').Value:= DBGrid2.DataSource.DataSet.Fields[0].AsString;
>
> itd... czyli inaczej:
>
> ADOQuery3.Parameters.ParamByName('GRUPA').Value:= DBGrid2.DataSource.DataSet.FieldByName('GRUPA').AsString;
> ADOQuery3.Parameters.ParamByName('NAZWA').Value:= DBGrid2.DataSource.DataSet.FieldByName('GRUPA').AsString;
> ADOQuery3.Parameters.ParamByName('RODZAJ').Value:= DBGrid2.DataSource.DataSet.FieldByName('GRUPA').AsString;
>
> rozumiesz?
>
> Paweł
Owszem, teraz już tak,ale trochę to trwało. Też tak macie że 10 godzin patrzycie na ten sam kawałek kodu nie nie widzicie błędów? Czy tylko ja tak mam :-). Dopiero podpowiedź , lub reset (mój) dają jakiś ruch do przodu. To tak jakby się człowiek maniakalnie uczepił raz obranej drogi i za nic nie chciał zrozumieć , że inna może być lepsza.
Paweł , dziękuję
pozdrawiam
Przemek
Technical Details
Message-ID:
<a615c6af-e6d3-4a8e-829a-7e1426abed68@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!r185no464732ita.0!news-out.google.com!78ni7975itm.0!nntp.google.com!r185no464728ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<4f0ed382-541b-47ba-8b98-a5d18bcd269e@googlegroups.com> <34268902-e3a5-4655-a4e5-54389bcbcc49@googlegroups.com>Show Full Headers
Complete Article Headers
X-Received: by 10.157.6.80 with SMTP id 74mr2171447otn.5.1486031181359; Thu, 02 Feb 2017 02:26:21 -0800 (PST) X-Received: by 10.157.56.117 with SMTP id r50mr803726otd.12.1486031181330; Thu, 02 Feb 2017 02:26:21 -0800 (PST) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!r185no464732ita.0!news-out.google.com!78ni7975itm.0!nntp.google.com!r185no464728ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.delphi.bazy-danych Date: Thu, 2 Feb 2017 02:26:20 -0800 (PST) In-Reply-To: <34268902-e3a5-4655-a4e5-54389bcbcc49@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.76.108.156; posting-account=7n8jYQoAAAD8CMBk_0SEIjdWdfp4EnSW NNTP-Posting-Host: 46.76.108.156 References: <4f0ed382-541b-47ba-8b98-a5d18bcd269e@googlegroups.com> <34268902-e3a5-4655-a4e5-54389bcbcc49@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <a615c6af-e6d3-4a8e-829a-7e1426abed68@googlegroups.com> Subject: Re: Kopiowanie , prośba o podpowiedź - kopiowanie pól z dbgrid From: lordbz <lordbz@gmail.com> Injection-Date: Thu, 02 Feb 2017 10:26:21 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit