Jump to content

Populating Combo box from txt file

Recommended Posts

1. Use Read Delimited Spreadsheet File to read the file and get a 2D array of strings.

2. Your text file does not have any tab characters.  Are they supposed to be space delimited?

3. You have duplicate values in your text file.  This could be causing an error when you try to set them.

Link to comment

Hi Thomas,

In the ComboBox, you can't have string items that correspond to the same 'sting value'

In you file, many Macchina have the same limit value (789), so the ComboBox property node returns an error.

My suggestion is to build a map, when the user selects a string, you look in the map (look up table) the corresponding limit.


see attached VI


Edited by Antoine Chalons
Link to comment

Join the conversation

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

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...

Important Information

By using this site, you agree to our Terms of Use.