Announcement

Collapse
No announcement yet.

List Box Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • List Box Problem

    Here is what I'm trying to do
    List

    item1
    item2
    item3
    All PDF Files

    First here is the list code

    item1::c:\01.txt

    Second here is the Actions Code

    %SelectedIndex% = ListBoxObject[ListBox1].GetSelected
    %ItemData% = ListBoxObject[ListBox1].GetItemData (%SelectedIndex%)
    File.Open (open, "%ItemData%")

    Here is the Error Message

    Error Opening File
    File not Found
    C:\01.txt

    File is in the root of c drive

    Can anyone help me in this matter.

    Thanks

  • #2
    Re: List Box Problem

    Do you have space at the end of your file name? Hard to tell but that could cause the error, i.e. make sure it's "c:\01.txt" not "c:\01.txt "

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: List Box Problem

      Thanks, Corey

      That did fix the problem, I did not seem to see it. So does this code look good to you, would you change anything?

      Thanks Again

      Comment


      • #4
        Re: List Box Problem

        As long as it works I'd just keep it personally. I'm not much on re-writing code which already works...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment

        Working...
        X