Topic: Show only part of Combobox Value

Hello All -
MVD Community, I've a question hoping you can help me out.  Is there a function or command in the delphi script that can
concatenate part of a value in a combobox to display on a textbox when you choose the item in the combobox?

Let me explain, consider the following code:

procedure Form1_ComboBox1_OnCloseUp (Sender: TObject);
begin
  Form1.Edit1.Text := Form1.ComboBox1.Text;
end;

The above works fine displaying the text from the combobox into the textbox but what I just want to show in the description only a part of the combobox value that was chosen?

For example, the combobox value chosen is something like:

2.3.3..2.01 
            Paper products and miscellaneous

I want to show the numeric code in the left in the combobox and the description ONLY in the textbox.

Can this be accomplished?


Thanks in advance!!!

2 (edited by the3dmen 2021-03-11 08:16:06)

Re: Show only part of Combobox Value

here is it

Post's attachments

Attachment icon combo.zip 333.81 kb, 340 downloads since 2021-03-11 

Re: Show only part of Combobox Value

the3dmen wrote:

here is it

Beautiful!  - great man!  thanks!!!