Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2004
    Posts
    10

    Simple question from a simple mind

    Can anyone tell me what is wrong with this? The file is created but it has no content although I know the indexes in the listbox have associated data. Any help appreciated.

    -- Get the indexes of the items currently selected in the listbox.
    -- and get the data associated with that index

    selected = ListBox.GetSelected("LB1");
    sel_data = ListBox.GetItemData("LB1", selected);

    -- write the data to a text file
    TextFile.WriteFromString("C:\\Data.txt", sel_data, true);

  2. #2
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    ListBox.GetSelected("LB1"); returns a table containing all selected items

    --change
    sel_data = ListBox.GetItemData("LB1", selected);
    --to
    sel_data = ListBox.GetItemData("LB1", selected[1]);

  3. #3
    Join Date
    Jun 2004
    Posts
    10
    Oops. Stupid tables. Thanks man.

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by brdga
    Oops. Stupid tables. Thanks man.
    If I had a dollar for every time I said that. . .
    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

Similar Threads

  1. Few simple questions...
    By daveinmb in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-22-2004, 01:49 AM
  2. Newbie question, this has got to be a simple just don't know why
    By shogo in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 05-24-2003, 01:18 PM
  3. A simple question from greece
    By alaska in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 11-15-2002, 09:30 AM
  4. Simple serial number question
    By Research in forum Setup Factory 6.0
    Replies: 5
    Last Post: 03-18-2002, 11:25 PM
  5. Simple Question
    By joesoap in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 02-23-2001, 12:28 PM

Posting Permissions

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