11-13-2006 08:09 PM
11-13-2006 10:34 PM
If you mean a rows & columns TEXT file, then it's simple.
You have an event structure with the following responses to events:
ListBox Value Change:
Use the value of the listbox to index the list of file names, display the result in a separate field called NAME(to show the one you're about to pick).
OPEN button Value Change:
Use the value of the NAME field as your result.
ListBox Double-Click:
If the ROW value (double-clicked row) is less than the number of names in the list (they might have double clicked beyond the end), then Use the value of the NAME field as your result.
This last thing works because your VALUE CHANGE event will occur before the DOUBLE-CLICK event occurs.
Now use this name to open the chosen file.
HTH
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-13-2006 11:21 PM