populate ComboBox from query
Hy, my question is how to populate DialogPage ComboBox with results from a Query?
I've tried the following code:
VAR SQLQuery1 : String;
procedure ListBox1OnEnter(Sender: TfrxComponent);
begin
SQLQuery1 := 'Select F_ACRONYM from Customer';
ListBox1.Items.Add(ToStr(QueryValue(SQLQuery1)));
end;
My problem is that I can't get all the names from the result in my ComboBox, it takes only the first name.
Can anyone help me?
regards,
CsAlex
I've tried the following code:
VAR SQLQuery1 : String;
procedure ListBox1OnEnter(Sender: TfrxComponent);
begin
SQLQuery1 := 'Select F_ACRONYM from Customer';
ListBox1.Items.Add(ToStr(QueryValue(SQLQuery1)));
end;
My problem is that I can't get all the names from the result in my ComboBox, it takes only the first name.
Can anyone help me?
regards,
CsAlex
Comments
Thank you gpi, works perfectly [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />. Have a nice week![/img]