RE: Add String in AddObject method and retrieving its va lue
Eduardo Duran Cardenas <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <51B9D9ACEE68B840A27F7C86903C9D15012BF8EA@TFM_MTY_DOM05> |
No i´m not. Maybe syntax in this message is not properly wroted. the problem is that it gives me crash. > -----Mensaje original----- > De: GALLAGHER Kevin S [mailto:[email protected]] > Enviado el: Miércoles, 09 de Julio de 2003 01:16 p.m. > Para: '[email protected]' > Asunto: RE: [Delphi] Add String in AddObject method and retrieving its > value > > > I took at quick look, are you getting errors on the > ShowMessage line? Beings > that you have "items.object" rather then > > "items.objects" > > > > > > -----Original Message----- > From: Eduardo Duran Cardenas [mailto:[email protected]] > Sent: Wednesday, July 09, 2003 7:32 AM > To: [email protected] > Subject: [Delphi] Add String in AddObject method and > retrieving its value > > > > > I though something like this but must have something wrong.. > hope someone can help > > list : Tstrings > q :query > > I've tried some ways... but doesn´t work. > > while not q.eof do begin > List.addObject(q.fieldbyname('FullName').asstring, > > TObject(q.fieldbyname('ShortName').asstring)) // > also put the string word after TObject and looks like > TObject(String(q.Fieldby.... > q.next; > end; > > ComboBoxOnChange(Sender:Tobject); > begin > with TComboBox(Sender) do > Showmessage(string(items.object[itemindex])) > end; > > > > Eduardo Duran C. > TFM, Departamento TI > 83057900 ext 7508 > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > ------------------------ Yahoo! Groups Sponsor > ---------------------~--> > Get A Free Psychic Reading! Your Online Answer To Life's > Important Questions. > http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/i7folB/TM > -------------------------------------------------------------- > -------~-> > > Delphi Tips & Tutorials... > http://www.delphicollection.com > --------------------------------------------------------------- > Unsubscribe:[email protected] > List owner:[email protected] > --------------------------------------------------------------- > > Your use of Yahoo! Groups is subject to > http://docs.yahoo.com/info/terms/ > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get A Free Psychic Reading! Your Online Answer To Life's Important Questions. http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> Delphi Tips & Tutorials... http://www.delphicollection.com --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/