Shoot Me! (help)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • TristanD
    Forum Member
    • Oct 2006
    • 314

    Shoot Me! (help)

    could someone tell me why the file location doesn't get set as the itam data for my listbox.. (This is driving me crazy)

    Code:
    function filefound()
    getbills = File.Find("AutoPlay\\Docs", "*.ini", true, true, nil, found);
    end
    function found (FoundPath)
    		billname = INIFile.GetValue(FoundPath, "Rekening", "betreft");
    		ListBox.AddItem("ListBox1", billname, _SourceFolder.. "\\\\" ..FoundPath);
    		Input.SetText("About",_SourceFolder.. "\\\\" ..FoundPath);
        return true;
    end
  • TristanD
    Forum Member
    • Oct 2006
    • 314

    #2
    som1 plz help me on this

    Comment

    • bule
      Indigo Rose Customer
      • May 2005
      • 1116

      #3
      More data would help...

      Try Debug.Print(FoundPath); command.
      Never know what life is gonna throw at you. ZubTech

      Comment

      • TJ_Tigger
        Indigo Rose Customer
        • Sep 2002
        • 3159

        #4
        Try this

        Code:
        function filefound()
        	getbills = File.Find("AutoPlay\\Docs", "*.ini", true, true, nil, found);
        end
        
        function found (FoundPath)
        	billname = INIFile.GetValue(FoundPath, "Rekening", "betreft");
        	if billname ~= "" then
        		ListBox.AddItem("ListBox1", billname, FoundPath);
        		Input.SetText("About", FoundPath);
        		return true;
        	else
        		Dialog.Message("ERROR", "There was an error")
        		return false;
        	end
        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