Jump to content

Recommended Posts

Posted (edited)

hi all, Im a bit stumped on how id go about doing such thing like:

i have an ini file with saved text

[name]

name1=bob

name2=jones

name3=Richard

i know how to go about reading them but

how do i create 1 loop that starts with what bob needs then loop ends then reloops with what jones needs and same with Richard

just a small example would be nice please :)

Edited by Skidzhard
Posted

how can we know what bob, jones and richard need ? and why loops ? there is only 1 key for each name ?

E.

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Posted (edited)

Not going to spoon feed you any code. 

1.  Show us what you've done.

2.  Look into arrays.  You can put a loop variable into an array variable's index....

For $x = 1 to 20
   $array[$x] = SomeData($x)
Next

3.  IniRead()

4.  Read the help file.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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
  • Recently Browsing   0 members

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