Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: Table & Listbox

  1. #1
    Join Date
    Jan 2005
    Posts
    9

    Huh? Table & Listbox

    First sorry for bad english!!
    I have one problem!
    I need to read text file to table and every line itself put in ListBox Object "List"!
    But this is not a problem the problem is that text file that i use to read to table "table"
    have very much lines and is not always same number of lines!! so i will need some code!!
    some kind of do while actions or something similar to this but to do exactly what will do this lines
    down!!!

    Thanks Everyone!!!





    r1 = Table.Concat(table, "", 1, 1);
    r2 = Table.Concat(table, "", 2, 2);
    r3 = Table.Concat(table, "", 3, 3);
    r4 = Table.Concat(table, "", 4, 4);
    r5 = Table.Concat(table, "", 5, 5);
    r6 = Table.Concat(table, "", 6, 6);
    r7 = Table.Concat(table, "", 7, 7);
    .
    .
    .



    l1 = ListBox.AddItem("List", r1, "");
    l2 = ListBox.AddItem("List", r2, "");
    l3 = ListBox.AddItem("List", r3, "");
    l4 = ListBox.AddItem("List", r4, "");
    l5 = ListBox.AddItem("List", r5, "");
    l6 = ListBox.AddItem("List", r6, "");
    l7 = ListBox.AddItem("List", r7, "");
    .
    .
    .
    --here should go very much this lines etc l8 = ListBox.AddItem("List", r7, ""); ...

  2. #2
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    Try something like this:

    --read textfile into a table
    text_table = TextFile.ReadToTable(_SourceFolder .. "\\Information.txt");

    --special for loop to use with tables
    for x,actline in text_table do
    item_index = ListBox.AddItem("List", actline);
    end


    for more informations search help "Using For to Enumerate Tables"


    Stefan_M
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Join Date
    Jan 2005
    Posts
    9

    Thanks

    Thanks for help but i don't know how i didn't know that

Similar Threads

  1. ListBox to Table
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 08-06-2004, 08:18 AM
  2. Example: Using the ListBox object
    By Ted Sullivan in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 12:24 PM
  3. Simulating a Table in a ListBox
    By jwarrent in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 03-07-2004, 09:10 PM
  4. Creating a Table of Contents
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 11:35 AM

Posting Permissions

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