Jump to content

Is there a way to pass a variable to IniRead()


 Share

Recommended Posts

Hi folks,

Yes, I have read the help file and yes, I have searched the forums.

I'd like to be able to read a variable number of parameters from an ini file so would like to do something like this:

$MyVar = IniRead("MyIniFile", "MySection", $KeyCount, "n/a")

but I get "Expected a "=" operator in assignment statement.:".

I've also found that build the whole list of arguaments into a string and passing that doesn't work.

I'd REALLY not like to have to preset the number of keys that can be used and it would make pretty ugly code too.

Any help will be gratefully accepted.

Ta,

4Eyes

Link to comment
Share on other sites

inireadsection()

sorts the keys & values into an array

$Array[Key][Value]

Edited by CodyBarrett
Link to comment
Share on other sites

haha sry my man

Link to comment
Share on other sites

its all in the AUTOIT>funtion reference>file management

section of help file

Link to comment
Share on other sites

your welcome i love the helpfile :D it is my best friend... well.... not literaly but you know haha

Link to comment
Share on other sites

hmmm it is... ill make a topic in Examples... its not very impressive just a number generator.. OFF topic.. well yeah the helpfile has EVERYTHING that was designed for ScitTE.. and some stuff others have put in.. gonna go fix ma links :D

EDIT

fixed lol...

Edited by CodyBarrett
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...