Topic: Combobox

I want to use a combobox. I have version 6.5.
I dont understanding Script.
Can you help me?

Re: Combobox

what do you want to use exactly?

3 (edited by Rein 2021-02-28 12:22:18)

Re: Combobox

I want a box Example Family
Than the choice for
Father
Mother
sister

When i klick on one of them it must to look in de base.

I klick on sister en then i see it.

Post's attachments

Attachment icon voorbeeld.jpg 21.71 kb, 121 downloads since 2021-02-28 

4 (edited by CDB 2021-03-04 10:08:17)

Re: Combobox

Do you want the combobox to be hard coded or get the values from a table?


To hard code use this for example:

procedure frmRelationship_OnShow (Sender: TObject; Action: string);

begin
  

    frmRelationship.cmbRelationship.Items.Add('Sister');
    frmRelationship.cmbRelationship.Items.Add('Brother');
  
end;

Change frmRelationship  to your form name.


Change cmbRelationship to your combobox name.

On a clear disk you can seek forever

Re: Combobox

procedure cmbRelationship_Onchange (Sender: TObject; Action: string);

begin
  

   form1.edit1.text := form1.cmbRelationship.text
  
end;