Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    165

    Star I need help with downloading files! An easy way to display files to download

    Hi all, a new project in the making, but has been halted after trying a few ways, to no avail.

    Basically I need to display around 70 files to download, each download will be displayed with a title, and then the hidden data will be the download URL.

    An example I have tried is a listbox with the program title as the item text, and the URL in the Item Data part, but I have no way of loading this on show (either from registry, text file or ini file)

    An example:

    Item Text Item Data

    Program 1 http://www.myprog1.exe
    Program 2 http://www.myprog2.exe
    etc...

    What I have managed to do is use this code:
    Code:
    ListBox.DeleteItem("ListBox1", -1);
    tbl_folders = TextFile.ReadToTable(_DesktopFolder.."\\ProgList.txt");
    for count = 1, Table.Count(tbl_folders) do
    	result = ListBox.AddItem("ListBox1", tbl_folders[count], "");
    end

    but in the listbox it just shows the url text, but I would like a way to store both the Item Text AND the Item Data so when it loads the page, it is all filled in, I am pulling my hair out here as I have a few apps & have made that are downloaders and listbox apps, but I cannot incorporate them into 1.

    I have tried writing to the registry, an ini file AND a text file, but none do what I want, is there any way to do what I need?

    I have also tried using a tree, but I have never been able to figure them out so have avoided them at all cost!

  2. #2
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038

    Try this

    Here, give this a try.
    Attached Files
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

Posting Permissions

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