AceSentinal Posted August 11, 2009 Posted August 11, 2009 I am trying to figure out how to read a list from a file name derived from a variable + ".ini" as extension. GUICtrlSetData($Loc2, IniRead(GUICtrlRead($Loc1) And ".ini", "Region","Region","Null")) is what i am trying to do. where $Loc1 = GUICtrlCreateCombo("Continent", 16, 48, 145, 25) GUICtrlSetData(-1, IniRead("Faction.ini", "Location", "Lands", "null")) ;[Location] ;Lands=North America|South America|Africa|Europe|Asia $loc1 ".ini" ;[Region] ;Region=States or capitols to conquer I was using this as a debug label to see what it was spitting out. GUICtrlSetData($Label2, GUICtrlRead($Loc1) And ".ini") I did change ...And ".ini") to match setdata($Loc2... each time for process of elimination. Just trying to read "North America.ini, South America.ini" etc. based on combobox variable $Loc1. Going this route will allow room for expansion and modifications while keeping the rules the same. :blink: What just happened?
Valuater Posted August 11, 2009 Posted August 11, 2009 Maybe... GUICtrlSetData($Loc2, IniRead((GUICtrlRead($Loc1) & ".ini"), "Region", "Region", "Null")) 8)
AceSentinal Posted August 11, 2009 Author Posted August 11, 2009 wow... >_< I missed that... Thank you. :blink: What just happened?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now