Can someone please help me with the List Box – Get Item Data action? I have 12 PDF files in a folder within the Distribution folder. I have a list box that has the names of these 12 files. I would like to double click on a name and have the corresponding PDF file opened. Right now, no matter which name I double click in the list box, the same PDF file opens. Thank you for your help.
Announcement
Collapse
No announcement yet.
List Boxes again
Collapse
X
-
Re: List Boxes again
Hi nero
When adding items to the list box, write it as follows:
<font color=green>
Item 1::address of PDF file 1
Item 2::address of PDF file 2</font color=green>
...etc
Then use the following Actions for double-click:
<font color=green>
%SelectedIndex% = ListBoxObject[ListBox1].GetSelected
%ItemData% = ListBoxObject[ListBox1].GetItemData (%SelectedIndex%)
File.Open (open, "%ItemData%")</font color=green>
This will get each items address seperately and will be open by way of the File.Open Action-
= Derek
["All glory comes from daring to begin" - fortune cookie]
Comment