Der_Andi Posted April 21, 2007 Share Posted April 21, 2007 Hi, i just wrote the following code: If IniRead("settings.ini", "general", "running", 0) Then MsgBox(0, "Info", "Program is running.") Exit Else IniWrite("settings.ini", "general", "running", 1) EndIf The specified txt-file does not exist. FileExists() returns 0 here and the Else-part is being executed as expected. Andi Link to comment Share on other sites More sharing options...
Uten Posted April 21, 2007 Share Posted April 21, 2007 To answer your question with code msgbox(48, "True == 1 ???", True == 1) ; But If 1 Then msgbox(48, "1| evalutes to true") Else msgbox(48, "1| evalutes to False") EndIf Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
MHz Posted April 21, 2007 Share Posted April 21, 2007 Hi, i just wrote the following code: If IniRead("settings.ini", "general", "running", 0) Then MsgBox(0, "Info", "Program is running.") Exit Else IniWrite("settings.ini", "general", "running", 1) EndIf Link to comment Share on other sites More sharing options...
Der_Andi Posted April 21, 2007 Author Share Posted April 21, 2007 Got it. Thanks 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