Combo box external url

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ianhull
    Forum Member
    • Jul 2004
    • 314

    Combo box external url

    Hi all, can anyone please help me read in a text file which contains url's so that my users can select a address and click go to have the web page displayed in Web1?

    I am trying to allow only the sites listed in the text file to be viewed.

    Thanks
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #2
    Make sure the text file contains one URL per line then you can read the file into a table using TextFile.ReadToTable. This will create a table containing one URL per index of the table. Then you could use a for loop to add each item to the listbox. Then upon selection in the LB you can load that URL.

    Tigg

    Code:
    tbURLs = TextFile.ReadToTable("AutoPlay\\Docs\\urls.txt");
    for i,v in tbURLs do
    ListBox.AddItem("ListBox1", v, "");
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment

    Working...
    X