Sign in to follow this  
Followers 0
Hypertrophy

inireadsection

3 posts in this topic

title. how do i find out how many keys are in my ini file?

I've tried this:

$inisection = IniReadSection($ini, "Section1")
                For $i=1 To $inisection[0][0]
                    Msgbox(0,"",$inisection[0][0])
                Next

But it keeps returning 1002, even though I only have 1000 keys.

?

Share this post


Link to post
Share on other sites



The number of elements returned will be in $result[0][0]. With your example you can check what 2 sections doesn't exist if you have just 1000.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

I don't understand your above post.

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  
Followers 0