erdal Posted July 29, 2014 Share Posted July 29, 2014 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; Quote Link to comment Share on other sites More sharing options...
wjdelphi Posted July 21, 2015 Share Posted July 21, 2015 good idea. but it is much better if uniCombobox or uniRadioGroup have values property which map items property. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.