If ReadINI("CONFIG", "News", App.Path & "\config.ini") = "Web" Then picNews.Visible = False webNews.Visible = True optWeb.Value = True optIni.Value = False webNews.Navigate "www.yoursite.com/news.php" ElseIf ReadINI("CONFIG", "News", App.Path & "\config.ini") = "Ini" Then picNews.Visible = True webNews.Visible = False optWeb.Value = False optIni.Value = True ElseIf ReadINI("CONFIG", "News", App.Path & "\config.ini") <> "Web" Then MsgBox "Your file, config.ini, has been changed and there is no automatic solutions. Please contact an administrator to fix the problem!" End ElseIf ReadINI("CONFIG", "News", App.Path & "\config.ini") <> "Ini" Then MsgBox "Your file, config.ini, has been changed and there is no automatic solutions. Please contact an administrator to fix the problem!" End End If
If webNews.Visible = True Then Exit Sub Else Call WriteINI("CONFIG", "News", "Web", (App.Path & "\config.ini")) picNews.Visible = False webNews.Visible = True optWeb.Value = True optIni.Value = False webNews.Navigate "www.yoursite.com/news.php" End If
If picNews.Visible = True Then Exit Sub Else Call WriteINI("CONFIG", "News", "Ini", (App.Path & "\config.ini")) picNews.Visible = True webNews.Visible = False optWeb.Value = False optIni.Value = True End If
News=Web