I am trying to use a list box to let the user select and open PDF files. I have populated the list box with the document name in the item text column and in the item data column--I have populated it using the built in "insert file reference" command. The help file says it is easy to select an item in the list box and use the inserted file reference to open the file. How do you do this?
I have tried the following code but it does not work. It seems the File.Open command cannot handle a variable as the path.
I have searched through what now seems to be very few online resources about a listbox. The youtube videos by IR don't show how to do this or at least after hours of searching, I have given up Thank you. JimC
I have tried the following code but it does not work. It seems the File.Open command cannot handle a variable as the path.
PHP Code:
List_Select = ListBox.GetSelected("ListBox1");
data_string = ListBox.GetItemData("ListBox1", List_Select);
File.Open(data_string, "PDFs", SW_MAXIMIZE);
Comment