Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Posts
    2

    Grin List Boxes again

    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.

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    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]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts