user20 Posted August 16, 2005 Report Share Posted August 16, 2005 formaa ir 2 StringGrid, vienaa ielaadee failus, tad lietotaajs izveelaas vajadziigo informaaciju no pirmaa StringGrid, un paarvieto to uz otro StringGrid? kaa paveikt sho gaajienu ieksh delphi? kaa paarvietot to info uz otro StringGrid ? Link to comment Share on other sites More sharing options...
bubu Posted August 16, 2005 Report Share Posted August 16, 2005 StringGrid2.Cells[1,1] = StringGrid1.Cells[1,2]; Link to comment Share on other sites More sharing options...
user20 Posted August 16, 2005 Author Report Share Posted August 16, 2005 kaut kaa preciizaak vareetu luudzu? Link to comment Share on other sites More sharing options...
user20 Posted August 16, 2005 Author Report Share Posted August 16, 2005 to rindinju ieprogrameet zem kaadas pogas? Link to comment Share on other sites More sharing options...
bubu Posted August 16, 2005 Report Share Posted August 16, 2005 A kā lai es to zinu? Es taču nezinu kad tu gribi pārnest datus - uz pogas nospiedienu, uz selektējuma maiņu, vai uz taimera īventa... Link to comment Share on other sites More sharing options...
user20 Posted August 16, 2005 Author Report Share Posted August 16, 2005 ar pogas paliidziibu? Link to comment Share on other sites More sharing options...
des Posted August 16, 2005 Report Share Posted August 16, 2005 (edited) Nu uzmet uz formas butonu, noklikskjini uz vinja, Tev automaatiski izveidosies: procedure TForm1.Button1Click(Sender: TObject); begin end; Un tad starp begin un end attieciigi ieraksti visu gridu apstraadaashanas kodu, tipa: procedure TForm1.Button1Click(Sender: TObject); begin stringgrid1.Cells[3,3] = stringgrid2.Cells[3,3]; end; Edited August 16, 2005 by des Link to comment Share on other sites More sharing options...
user20 Posted August 16, 2005 Author Report Share Posted August 16, 2005 liels Jums paldies!!!!! :rolleyes: Link to comment Share on other sites More sharing options...
user20 Posted August 17, 2005 Author Report Share Posted August 17, 2005 ir vel taada probleema ka tur milziigi daudz to cells(tuukstoshiem) bet katru defineet tas nav iiopashi labi, vai nav kaads cits veids kaa paarnest datus? Situaacija taada piemeeram lietotaajs izveelaas kaut kaadus datus atziimee tos, tad paarnes otraa tabulaa (StringGrid). Kaa to paveikt? Link to comment Share on other sites More sharing options...
Kavacky Posted August 17, 2005 Report Share Posted August 17, 2005 For i := a to b do Begin ... End; Link to comment Share on other sites More sharing options...
user20 Posted August 17, 2005 Author Report Share Posted August 17, 2005 man maz zinaashanu kaads vareetu preziizaak paraadiit? man source code http://paste.php.lv/2329 Link to comment Share on other sites More sharing options...
user20 Posted August 17, 2005 Author Report Share Posted August 17, 2005 palaizhot to programmu, izlec kluuda [Error] Unit1.pas(110): '[' expected but '.' found es nesaprotu kapeec? Link to comment Share on other sites More sharing options...
bubu Posted August 17, 2005 Report Share Posted August 17, 2005 (edited) Tur nav 110. rindiņas. Pamēģini Helpā(F1) pastīties kā tam TAdvStringGrid peikļūst atsevišķām rūtiņām. Delphi ir ļoti labs helps. Es vispār personīgi tādu komponentu nepazīstu. Esmu darbojies tikai ar TStringGrid. Edited August 17, 2005 by bubu Link to comment Share on other sites More sharing options...
user20 Posted August 17, 2005 Author Report Share Posted August 17, 2005 blin es kluudiijos te iistais kods http://paste.php.lv/2341 un kluudas ir Error] Unit1.pas(109): '[' expected but '.' found [Error] Unit1.pas(110): '[' expected but '.' found [Fatal Error] reader.dpr(5): Could not compile used unit 'Unit1.pas' tas ir pielikts komponents, tas ir tas pats standarta Stringgrid Link to comment Share on other sites More sharing options...
Kaitnieks Posted August 17, 2005 Report Share Posted August 17, 2005 blin es kluudiijos te iistais kods http://paste.php.lv/2341un kluudas ir Error] Unit1.pas(109): '[' expected but '.' found [Error] Unit1.pas(110): '[' expected but '.' found [Fatal Error] reader.dpr(5): Could not compile used unit 'Unit1.pas' tas ir pielikts komponents, tas ir tas pats standarta Stringgrid 21120[/snapback] Tas taapeec, ka Cols un Rows ir masiivs nevis klase. Tev vajag ColCount un RowCount. Link to comment Share on other sites More sharing options...
Recommended Posts