Sign in to follow this  
Followers 0
cueclub

iniread and if statement

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Try this:

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

Share this post


Link to post
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

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