Sign in to follow this  
Followers 0
Triton

Question With Iniread()

2 posts in this topic

I've created an ini file (see Below)

[PROGRAMS]
prog1 = 
prog2 =
prog3 = 
etc...

Say my ini has an undetermind number of progs. How do i know when I'm at the end of my ini file?


Triton

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Maybe so, a 'fast' written sample:

While 1
   $prog = IniRead("xyz.ini","Programs", "prog" & $i, "error" )
   If $prog = "error" then ExitLoop
   ...
   do prog-commands here
   ...
WEnd
Edited by Holger

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