Jump to content
Sign in to follow this  
AceSentinal

File name from a variable...

Recommended Posts

AceSentinal

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?

Share this post


Link to post
Share on other sites
AceSentinal

wow... >_< I missed that...

Thank you.


:blink: What just happened?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×