Jump to content
Sign in to follow this  
alienkillaz

way to tell how many sections in an ini?

Recommended Posts

yes i know how to call an array. what im asking is if thier is a way to quickly determine how many sections are in an .ini

IniReadSectionNames()

If you do $temp = IniReadSectionNames() , $temp[0] will be the number of sections.

Share this post


Link to post
Share on other sites

I guess I'm not understanding what you are asking for, but doesn't this work just fine?

$sections = IniReadSectionNames("my.ini")
MsgBox(0,"Total Number of Sections",$sections[0])

EDIT: Piano_Man got to it first :)

Edited by maqleod

[u]You can download my projects at:[/u] Pulsar Software

Share this post


Link to post
Share on other sites

I guess I'm not understanding what you are asking for, but doesn't this work just fine?

$sections = IniReadSectionNames("my.ini")
MsgBox(0,"Total Number of Sections",$sections[0])

EDIT: Piano_Man got to it first ;)

And apparently he didn't need either of our posts :)

lol i misunderstood what u were saying. thansk for the help. works now

Edited by Piano_Man

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  

×
×
  • Create New...