Jump to content

unicombobox add value


Recommended Posts

unicombobox hidden value

 

string or integer;

 

 

If you use numbers instead of pointer use TObject.

 

usage:

 

procedure TMainForm.UniButton1Click(Sender: TObject);

var arrList : array[0..0] of String;

begin

arrlist[0]:='020';

UniComboBox1.Items.AddObject('Active',Pointer(arrList[0]));

 

arrlist[0]:='030';

UniComboBox1.Items.AddObject('deActive',Pointer(arrList[0]));

 

uniComboBox1.ItemIndex:=1;

ShowMessage(String(pString(uniComboBox1.Items.Objects[uniComboBox1.ItemIndex])));

end;

Link to comment
Share on other sites

  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...