Sign in to follow this  
Followers 0
Wb-FreeKill

Iniread (read all)

2 posts in this topic

#1 ·  Posted (edited)

If IniRead("C:\her.ini","count","$10c ~$65c", "Notfound") = 1 Then
Exit
EndIf

how can i in a simple way code, when all $10c, $11c, $12c....$65c are = 1 then exit?

Edited by Wb-FreeKill

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

*I'm a little sick.*

I'm not sure if this does what you want.

$Matched = 1
For $i = 10 To 65
   $val = IniRead("C:\her.ini","count","$" & $i & "c", "Notfound")
   If $val <> "1" Then
      $Matched = 0
   EndIf
Next
If $Matched = 0 Then
  ;At least one value does not equal the number "one"!
Else
  ;No value contained anything other than the number "one"
   Exit
EndIf
Edited by SlimShady

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