| |

VerySource

 Forgot password?
 Register
Search
View: 813|Reply: 3

Delphi control read database problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-1 19:30:02
| Show all posts |Read mode
Can the combobox drop-down box in Delphi read the information of a column in the database and display it for selection ~~ Or are there other controls that can be implemented ~~~
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-12 14:15:01
| Show all posts
dbcombobox
Reply

Use magic Report

0

Threads

53

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-5-17 19:00:01
| Show all posts
Do n’t cut corners. Oh, you still traverse the database and load it into the combobox
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-18 11:30:01
| Show all posts
Haha ~~~~ I have a way!
procedure TForm1.FormCreate (Sender: TObject);
begin
while Not (adoquery1.Eof) do
  begin
   ComboBox1.Items.Add (adoquery1.FieldByName ('field name'). AsString);
   adoquery1.Next;
  end;

end;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list