Jump to content
Forum Roportal
Licuriciu

delphi

Rate this topic

Recommended Posts

mai fratilor ajutati-ma si pe mine ca nu mai stiu ce sa fac

incerc de juma de ora sa pun intr-un dbcombobox o lista cu orasele din romania pe care le am intr-un tabel numit orase

 

 

 

Multumesc mult.

Share this post


Link to post
Share on other sites

Incearca asta:

procedure TForm1.FormCreate(Sender: TObject);

begin

with Table2 do begin

Open;

while not EOF do

begin

DBComboBox1.Items.Add(FieldByName('Numecamap').AsString);

Next;

end;

end;

 

unde Table 2 este tabelul tau sursa cu orasele.

 

Bafta.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×