Board index » delphi » STringlist question

STringlist question

How to get data from a stringlist with ten items in adbcombobox?

TIA,

niko

 

Re:STringlist question


I don't quite understand your question.  Are you trying to get data from a
DBComboBox and assign it to your own stringlist?  If so, one way to do it is
via the commaText property (containing a comma delimited list of items):

oMyStringList.commaText := dbComboBox.items.commaText

or

oMyStringList.strings.assign( dbComboBox.items)
Hope this helps,

Mark J. Wallin

Quote
Jerri Schrijver <j.schrij...@nisba.com> wrote in message

news:398efddf$1_2@dnews...
Quote
> How to get data from a stringlist with ten items in adbcombobox?

Re:STringlist question


Quote
>Jerri Schrijver wrote:

> How to get data from a stringlist with ten items in adbcombobox?

  DBCombo.Items.Assign(aStringList);
or
  DBCombo.Items.AdStrings(aStringList);

________
Andreas
Delphi 5.01 Pro, NT4.0 Sp5
Direct replies mailto:p...@augsburg.netsurf.de

Re:STringlist question


Quote
In article <398efddf$1_2@dnews>, Jerri Schrijver wrote:
> How to get data from a stringlist with ten items in adbcombobox?

  DBComboBox1.Items.Assign(StringList);

 Mike Orriss (TeamB & Developer Express)
 (Unless stated otherwise, my replies relate to Delphi 5)
 (No unsolicited e-mail replies please)

Re:STringlist question


ComboBox.Items.Assign(TheStringList);

--
Bill Todd (TeamB)
(Questions received via email cannot be answered.)

Other Threads