Jump to content

iniread and if statement


Recommended Posts

ok here is what i am testing now.

testfunc()
     
  func testfunc()   
         if iniread("c:\test.ini", "test", "teset2", "") = ("test5") than
         gotofunc()
         endif
         NextFunc()
   endfunc()

so if it doesnt return with "test5" it goes to "gotofunc". it does that, but even if test5 is there it still goes to "gotofunc()" :(

Am i missing a variable in there some where.

thx

cue

edit: added "" to the code. still not working =\

Edited by cueclub
Link to comment
Share on other sites

sahsanu,

thanks.

I tried

testfunc()
     
  Func testfunc()   
         If IniRead("c:\test.ini", "test", "teset2", "") = ("test5") Then gotofunc()
         NextFunc()
   EndFunc()

couldn't get it to work. :)

then i looked at it again.. low and behold Remove the " () " :(

helps if i actually read the examples. Thx again .

Cue

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...