Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: Help on listbox

  1. #1
    Join Date
    Jan 2007
    Posts
    57

    Help on listbox

    Wonder if anyone can help with listbox, im trying to search for a ini file and then when u click the name in the list box it gives certain info of the ini in another listbox.

    I have the search feature working but can't seem to get the click the serach items in the listbox to show the ini info i want.

    Any help please if you can

    best

    soso

  2. #2
    Join Date
    Nov 2006
    Posts
    233
    post the code you have already please, it's kinda difficult to help without seeing what you have so far..

  3. #3
    Join Date
    Jan 2007
    Posts
    57
    Ohh sorry about that this is what i have so far this just like copys everything in a text but i want to pick out like a certain line in a ini instead off copy everything.

    Code:
    -- Get the selected index
    nSelected = ListBox.GetSelected(this)[1];
    
    -- make sure something is actually selected
    if nSelected then
    	-- Get the file path from the item's data
    	sFilePath = ListBox.GetItemData(this, nSelected);
    	
    	-- Load the cities from the file into a table
    	tCities = TextFile.ReadToTable(sFilePath);
    	
    	-- Prevent the listbox from updating	
    	ListBox.SetUpdate("Listbox2", false);
    	
    	-- Remove all previous loaded cities
    	ListBox.DeleteItem("Listbox2", -1);
    	
    	-- Add all cities to the listbox
    	for nIndex, sCity in tCities do
    		ListBox.AddItem("Listbox2", sCity);
    	end
    	
    	-- Allow the listbox to update itself
    	ListBox.SetUpdate("Listbox2", true);
    end
    Cheers soso

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    this just like copys everything in a text but i want to pick out like a certain line in a ini instead
    use:
    Code:
    result = INIFile.GetValue(_WindowsFolder.."\\My Settings.ini", "My Section", "My Value");
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Jan 2007
    Posts
    57
    thanks for the reply

    Cheers Soso

  6. #6
    Join Date
    Aug 2009
    Posts
    6
    plz EXAMPLE file thanks

Similar Threads

  1. Listbox problem
    By krayten in forum AutoPlay Media Studio 6.0
    Replies: 32
    Last Post: 07-09-2007, 03:57 AM
  2. Listbox disappearing question
    By ebrusher in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 07-09-2005, 06:38 AM
  3. 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
  4. Listbox... how to? part 2
    By cold_fusion in forum AutoPlay Media Studio 4.0
    Replies: 7
    Last Post: 02-07-2004, 12:28 PM
  5. From listbox to listbox to flash
    By Konradsen in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 05-13-2003, 06:24 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