user20 Posted August 16, 2005 Report 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 ?
bubu Posted August 16, 2005 Report Posted August 16, 2005 StringGrid2.Cells[1,1] = StringGrid1.Cells[1,2];
user20 Posted August 16, 2005 Author Report Posted August 16, 2005 kaut kaa preciizaak vareetu luudzu?
user20 Posted August 16, 2005 Author Report Posted August 16, 2005 to rindinju ieprogrameet zem kaadas pogas?
bubu Posted August 16, 2005 Report 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...
des Posted August 16, 2005 Report 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
user20 Posted August 16, 2005 Author Report Posted August 16, 2005 liels Jums paldies!!!!! :rolleyes:
user20 Posted August 17, 2005 Author Report 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?
user20 Posted August 17, 2005 Author Report Posted August 17, 2005 man maz zinaashanu kaads vareetu preziizaak paraadiit? man source code http://paste.php.lv/2329
user20 Posted August 17, 2005 Author Report Posted August 17, 2005 palaizhot to programmu, izlec kluuda [Error] Unit1.pas(110): '[' expected but '.' found es nesaprotu kapeec?
bubu Posted August 17, 2005 Report 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
user20 Posted August 17, 2005 Author Report 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
Kaitnieks Posted August 17, 2005 Report 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.
Recommended Posts