cueclub Posted March 21, 2010 Share Posted March 21, 2010 (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 March 21, 2010 by cueclub Link to comment Share on other sites More sharing options...
sahsanu Posted March 22, 2010 Share Posted March 22, 2010 Try this: testfunc() Func testfunc() If IniRead("c:\test.ini", "test", "teset2", "") = "test5" Then gotofunc() NextFunc() EndFunc() Link to comment Share on other sites More sharing options...
cueclub Posted March 22, 2010 Author Share Posted March 22, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now