alienkillaz Posted October 15, 2007 Share Posted October 15, 2007 the function IniReadSectionNames ( "filename" ) will get all the section names but how could this be used to determine the total # of sections? Link to comment Share on other sites More sharing options...
maqleod Posted October 15, 2007 Share Posted October 15, 2007 from the help file: "The number of elements returned will be in $result[0]. If an @error occurs, no array is created. Only the first 32767 chars are taken in account in an section due to Win9x compatibility." [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
alienkillaz Posted October 15, 2007 Author Share Posted October 15, 2007 (edited) lol i misunderstood what u were saying. thansk for the help. works now Edited October 15, 2007 by alienkillaz Link to comment Share on other sites More sharing options...
Achilles Posted October 15, 2007 Share Posted October 15, 2007 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 .iniIniReadSectionNames() If you do $temp = IniReadSectionNames() , $temp[0] will be the number of sections. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
maqleod Posted October 15, 2007 Share Posted October 15, 2007 (edited) 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 October 15, 2007 by maqleod [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Achilles Posted October 15, 2007 Share Posted October 15, 2007 (edited) 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 October 15, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
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